<p><strong>Watch the live stream:</strong></p>
<a href='https://www.youtube.com/watch?v=Y0_XATQubXU' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>
<p><strong>About the show</strong></p>
<p>Sponsored by <a href="http://pythonbytes.fm/foundershub2022"><strong>Microsoft for Startups Founders Hub</strong></a>.</p>
<p><strong>Brian #1:</strong> <a href="https://eugeneyan.com/writing/uncommon-python/"><strong>Uncommon Uses of Python in Commonly Used Libraries</strong></a>
<a href="https://eugeneyan.com/writing/uncommon-python/"></a></p>
<ul>
<li>by Eugene Yan</li>
<li>Specifically, <a href="https://eugeneyan.com/writing/uncommon-python/#using-relative-imports-almost-all-the-time">Using relative imports</a></li>
<li>Example from sklearn’s <code>base.py</code>
from .utils.validation import check_X_y
from .utils.validation import check_array</li>
<li>“Relative imports ensure we search the <em>current</em> package (and import from it) before searching the rest of the <code>PYTHONPATH</code>. “</li>
<li>For relative imports, we have to use the <code>from .something import thing</code> form. </li>
<li>We cannot use <code>import .something</code> since later on in the code <code>.something</code> isn’t valid.</li>
<li>There’s a <a href="https://peps.python.org/pep-0328/#guido-s-decision">good discussion of relative imports in pep 328</a></li>
</ul>
<p><strong>Michael #2:</strong> <a href="https://twitter.com/aikidouke/status/1549687841265008642?s=12&t=LyRHbdObe2ee-wWTwuLslA"><strong>Skyplane Cloud Transfers</strong></a></p>
<ul>
<li>Skyplane is a tool for blazingly fast bulk data transfers in the cloud. </li>
<li>Skyplane manages parallelism, data partitioning, and network paths to optimize data transfers, and can also spin up VM instances to increase transfer throughput.</li>
<li>You can use Skyplane to transfer data:
<ul>
<li>Between buckets within a cloud provider </li>
<li>Between object stores across multiple cloud providers </li>
<li>(experimental) Between local storage and cloud object stores </li>
</ul></li>
<li>Skyplane takes several steps to ensure the correctness of transfers: Checksums, verify files exist and match sizes.</li>
<li>Data transfers in Skyplane are encrypted end-to-end.</li>
<li>Security: Encrypted while in transit and over TLS + config options</li>
</ul>
<p><strong>Brian #3:</strong> <a href="https://www.textualize.io/blog/posts/7-things-about-terminals"><strong>7 things I've learned building a modern TUI framework</strong></a></p>
<ul>
<li>by Will McGugan</li>
<li>Specifically, <strong>DictViews are amazing.</strong> They have set operations.</li>
<li><p>Example of using <code>items()</code> to get views, then <code>^</code> for symmetric difference (done at the C level):</p>
<pre><code> # Get widgets which are new or changed
print(render_map.items() ^ new_render_map.items())
</code></pre></li>
<li><p>Lots of other great topics in the article</p>
<ul>
<li><code>lru_cache</code> is fast</li>
<li>Unicode art in addition to text in doc strings</li>
<li>The <code>fractions</code> module</li>
<li>and a cool embedded video demo of some of the new css stuff in Textual</li>
</ul></li>
<li><a href="https://github.com/python/cpython/blob/4b4439daed3992a5c5a83b86596d6e00ac3c1203/Objects/obmalloc.c#L778"><strong>Python’s object allocator ascii art</strong></a></li>
</ul>
<p><strong>Michael #4:</strong> <a href="https://www.infoworld.com/article/3669232/python-popularity-still-soaring.html">‘Unstoppable’ Python</a></p>
<ul>
<li>Python popularity still soaring: ‘Unstoppable’ Python once again ranked No. 1 in the August updates of both the Tiobe and Pypl indexes of programming language popularity.</li>
<li><a href="https://www.infoworld.com/article/3636789/python-tops-tiobe-language-index.html">Python first took the top spot in the index last October</a>, becoming the only language besides Java and C to hold the No. 1 position.</li>
<li>“Python seems to be unstoppable,” said the Tiobe commentary accompanying the August index.</li>
<li>In the alternative <a href="https://pypl.github.io/PYPL.html">Pypl Popularity of Programming Language index</a>, which assesses language popularity based on Google searches of programming language tutorials, Python is way out front.</li>
</ul>
<p><strong>Extras</strong> </p>
<p>Brian:</p>
<ul>
<li>Matplotlib stylesheets can make your chart look awesome with one line of code.
<ul>
<li>But it never occurred to me that I could write my own style sheet.</li>
<li>Here’s an article discussing creation of custom matplotlib stylesheets
<ul>
<li><a href="https://www.datafantic.com/the-magic-of-matplotlib-stylesheets/"><strong>The Magic of Matplotlib Stylesheets</strong></a></li>
<li><a href="https://jakevdp.github.io/blog/2013/07/10/XKCD-plots-in-matplotlib/"><strong>XKCD Plots</strong></a></li>
</ul></li>
</ul></li>
</ul>
<p>Michael:</p>
<ul>
<li>Back <a href="https://pythonbytes.fm/episodes/show/295/flutter-python-gui-apps">on 295</a> we talked about <a href="https://flet.dev">Flet</a>. We now have a Talk Python episode on it (<a href="https://www.youtube.com/watch?v=kxsLRRY2xZA">live</a> and <a href="https://talkpython.fm/episodes/show/378/flet-flutter-apps-in-python">polished</a> versions).</li>
</ul>
<p><strong>Joke:</strong> <a href="https://twitter.com/PR0GRAMMERHUM0R/status/1550254320637157379">Rakes and AWS</a></p>
↧