Python Bytes: #452 pi py-day (or is it py pi-day?)
<strong>Topics covered in this episode:</strong><br> <ul> <li><em>* Python 3.14</em>*</li> <li><em>* <a href="https://ft-checker.com?featured_on=pythonbytes">Free-threaded Python Library Compatibility Checker</a></em>*</li> <li><em>* <a href="https://www.anthropic.com/news/claude-sonnet-4-5?featured_on=pythonbytes">Claude Sonnet 4.5</a></em>*</li> <li><em>* <a href="https://pep-previews--4622.org.readthedocs.build/pep-0810/?featured_on=pythonbytes">Python 3.15 will get Explicit lazy imports</a></em>*</li> <li><strong>Extras</strong></li> <li><strong>Joke</strong></li> </ul><a href='https://www.youtube.com/watch?v=j74eRaSEvIo' style='font-weight: bold;'data-umami-event="Livestream-Past" data-umami-event-episode="452">Watch on YouTube</a><br> <p><strong>About the show</strong></p> <p>Sponsored by DigitalOcean: <a href="https://pythonbytes.fm/digitalocean-gen-ai"><strong>pythonbytes.fm/digitalocean-gen-ai</strong></a> Use code <strong>DO4BYTES</strong> and get $200 in free credit</p> <p><strong>Connect with the hosts</strong></p> <ul> <li>Michael: <a href="https://fosstodon.org/@mkennedy">@mkennedy@fosstodon.org</a> / <a href="https://bsky.app/profile/mkennedy.codes?featured_on=pythonbytes">@mkennedy.codes</a> (bsky)</li> <li>Brian: <a href="https://fosstodon.org/@brianokken">@brianokken@fosstodon.org</a> / <a href="https://bsky.app/profile/brianokken.bsky.social?featured_on=pythonbytes">@brianokken.bsky.social</a></li> <li>Show: <a href="https://fosstodon.org/@pythonbytes">@pythonbytes@fosstodon.org</a> / <a href="https://bsky.app/profile/pythonbytes.fm">@pythonbytes.fm</a> (bsky)</li> </ul> <p>Join us on YouTube at <a href="https://pythonbytes.fm/stream/live"><strong>pythonbytes.fm/live</strong></a> to be part of the audience. Usually <strong>Monday</strong> at 10am PT. Older video versions available there too.</p> <p>Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to <a href="https://pythonbytes.fm/friends-of-the-show">our friends of the show list</a>, we'll never share it.</p> <p><strong>Brian #1: Python 3.14</strong></p> <ul> <li>Released on Oct 7</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html?featured_on=pythonbytes">What’s new in Python 3.14</a></li> <li>Just a few of the changes <ul> <li>PEP 750: Template string literals</li> <li>PEP 758: Allow except and except* expressions without brackets</li> <li><strong>Improved error messages</strong></li> <li>Default interactive shell now <ul> <li>highlights Python syntax</li> <li>supports auto-completion</li> </ul></li> <li>argparse <ul> <li>better support for <code>python -m module</code></li> <li>has a new <code>suggest_on_error</code> parameter for “maybe you meant …” support</li> </ul></li> <li><code>python -m calendar</code> now highlights today’s date</li> </ul></li> <li>Plus so much more</li> </ul> <p><strong>Michael #2: <a href="https://ft-checker.com?featured_on=pythonbytes">Free-threaded Python Library Compatibility Checker</a></strong></p> <ul> <li>by <a href="https://github.com/corona10?featured_on=pythonbytes">Donghee Na</a></li> <li>App checks compatibility of top PyPI libraries with CPython 3.13t and 3.14t, helping developers understand how the Python ecosystem adapts to upcoming Python versions.</li> <li>It’s still pretty red, let’s get in the game everyone!</li> </ul> <p><strong>Michael #3: <a href="https://www.anthropic.com/news/claude-sonnet-4-5?featured_on=pythonbytes">Claude Sonnet 4.5</a></strong></p> <ul> <li>Top programming model (even above Opus 4.1)</li> <li>Shows large improvements in reducing concerning behaviors like sycophancy, deception, power-seeking, and the tendency to encourage delusional thinking</li> <li>Anthropic is releasing the Claude Agent SDK, the same infrastructure that powers Claude Code, making it available for developers to build their own agents, along with major upgrades including checkpoints, a VS Code extension, and new context editing features</li> <li>And Claude Sonnet 4.5 is available in <a href="https://blog.jetbrains.com/ai/2025/09/introducing-claude-agent-in-jetbrains-ides/?utm_source=marketo&utm_medium=email&utm_campaign=general&utm_content=newsletter&map=2&mkt_tok=NDI2LVFWRC0xMTQAAAGdONnRabyMjVqZtzoP7gHexU8ch5afa-LRr8ve6qJs4H77qyz2tc6urxCZzTisSMxMDk1b7lvoTH8thHAh4_VCms-0_cbvDAen9_dSRNXu3axlSpR2&featured_on=pythonbytes">PyCharm too</a>.</li> </ul> <p><strong>Brian #4: <a href="https://pep-previews--4622.org.readthedocs.build/pep-0810/?featured_on=pythonbytes">Python 3.15 will get Explicit lazy imports</a></strong></p> <ul> <li><a href="https://discuss.python.org/t/pep-810-explicit-lazy-imports/104131?featured_on=pythonbytes">Discussion</a> on <a href="http://discuss.python.org?featured_on=pythonbytes">discuss.python.org</a></li> <li><p>This PEP introduces syntax for lazy imports as an explicit language feature:</p> <div class="codehilite"> <pre><span></span><code><span class="n">lazy</span> <span class="kn">import</span><span class="w"> </span><span class="nn">json</span> <span class="n">lazy</span> <span class="kn">from</span><span class="w"> </span><span class="nn">json</span><span class="w"> </span><span class="kn">import</span> <span class="n">dumps</span> </code></pre> </div></li> <li><p>BTW, lazy loading in fixtures is a super easy way to speed up test startup times.</p></li> </ul> <p><strong>Extras</strong></p> <p>Brian:</p> <ul> <li><a href="https://www.youtube.com/watch?v=4hGCwTqRz0w">Music video made in Python</a> - from Patrick of the band “Friends in Real Life” <ul> <li>source code: https://gitlab.com/low-capacity-music/r9-legends/</li> </ul></li> </ul> <p>Michael:</p> <ul> <li>New article: <a href="https://mkennedy.codes/posts/goodbye-wordpress-thanks-ai/?featured_on=pythonbytes">Thanks AI</a></li> <li>Lots of updates for <a href="https://github.com/mikeckennedy/content-types?featured_on=pythonbytes">content-types</a></li> <li>Dramatically improved search on Python Bytes (example: https://pythonbytes.fm/search?q=wheel use the filter toggle to see top hits)</li> <li><a href="https://talkpython.fm/books/python-in-production/buy?featured_on=pythonbytes">Talk Python in Production is out and for sale</a></li> </ul> <p><strong>Joke: <a href="https://x.com/pr0grammerhum0r/status/1971424514966683683?s=12&featured_on=pythonbytes">You do estimates</a>?</strong></p>
https://pythonbytes.fm/episodes/show/452/pi-py-day-or-is-it-py-pi-day