Demystifying Python Memory Management & Choosing a Project Layout
<p>How does Python manage memory behind the scenes? What are the common ways to lay out a Python project? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>Christopher shares an article titled “First Steps into Memory Management in Python.” With recent updates to the garbage collector and the ongoing work toward removing the Global Interpreter Lock (GIL), the article covers the fundamentals of how Python allocates, tracks, and frees memory.</p>
<p>We also share other articles and projects from the Python community, including recent releases, why Parquet dominates modern data engineering, choosing the right Python project layout, developing the most cursed <code>+</code> operator in all of Python, finding which dependencies block a Django project upgrade, and a Django performance benchmark profiler.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Spotlight:</strong> <a href="https://realpython.com/workshops/codex/">Codex for Python Developers: Hands-On Agentic Coding Course</a></p>
<p>Most Python developers use AI as fancy autocomplete. This 2-day live course teaches you to build entire projects with Codex, an AI agent that works inside your codebase.</p>
</div>
<div class="alert alert-warning" role="alert">
<p><strong markdown>Get Your Cheat Sheet:</strong> <a href="https://realpython.com/bonus/python-project-structure-cheatsheet/" class="alert-link" data-bs-toggle="modal" data-bs-target="#modal-python-project-structure-cheatsheet" markdown>Click here to download your free Python project structure cheat sheet</a> and keep the flat vs. src/ decision and the entry-point wiring within reach on your next project.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:01:56 – Python 3.16.0 Alpha 1 Is Now Available</li>
<li>00:02:24 – Django Security Releases Issued: 6.1.2, 6.0.9, and 5.2.18</li>
<li>00:02:46 – Release of Polars 2.0</li>
<li>00:03:32 – PyPy v8.0.1 Release</li>
<li>00:03:54 – Checking Email Reputation, and Allowing Outlook Again</li>
<li>00:04:48 – PyScript is in maintenance mode</li>
<li>00:05:55 – Codex for Python Developers: Hands-On Agentic Coding Course</li>
<li>00:06:21 – MLOps North: November 5th & 6th</li>
<li>00:06:46 – Why Parquet Dominates Modern Data Engineering</li>
<li>00:16:04 – First Steps Into Memory Management in Python</li>
<li>00:23:21 – Spotlight: Codex for Python Developers</li>
<li>00:25:05 – Python Project Structure: How to Choose the Right Layout</li>
<li>00:35:17 – Pendulum and the Most Cursed <code>+</code> Operator in All of Python</li>
<li>00:38:50 – django-benchmark: Django Performance Benchmark Profiler</li>
<li>00:41:53 – django-upgrade-report: Which Dependencies Block an Upgrade to Your Django Project? </li>
<li>00:44:33 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://blog.python.org/2026/10/python-3160-alpha-1-is-now-available/">Python 3.16.0 Alpha 1 Is Now Available</a></li>
<li><a href="https://www.djangoproject.com/weblog/2026/oct/06/security-releases/">Django Security Releases Issued: 6.1.2, 6.0.9, and 5.2.18</a></li>
<li><a href="https://pola.rs/posts/release-polars-2/">Release of Polars 2.0</a></li>
<li><a href="https://pypy.org/posts/2026/10/pypy-v801-release.html">PyPy v8.0.1 Release</a></li>
<li><a href="https://blog.pypi.org/posts/2026-10-16-email-reputation-and-outlook/">Checking Email Reputation, and Allowing Outlook Again</a> – Two years ago, PyPI prohibited Outlook email domains in the registration of new accounts due to a large malware campaign. With an update to how email reputation is calculated, addresses from <code>outlook.com</code> and <code>hotmail.com</code> can once more be used.</li>
<li><a href="https://dev.to/nodex-ar/pyscript-is-in-maintenance-mode-heres-whats-left-for-python-in-the-browser-4j15">PyScript is in maintenance mode. Here’s what’s left for Python in the browser - DEV Community</a></li>
<li><a href="https://realpython.com/workshops/codex/">Codex for Python Developers: Hands-On Agentic Coding Course – Real Python</a></li>
<li><a href="https://www.eventbrite.ca/e/mlops-north-building-with-agents-tickets-1993835483604?discount=PythonCanada">MLOps North: Building (with) Agents Tickets, Thursday, November 5-Friday, November 6 • 8:30 AM-3 PM | Eventbrite</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://oedokumaci.com/blog/posts/apache-parquet/">Why Parquet Dominates Modern Data Engineering</a> – How Parquet’s columnar layout, encodings, zstd compression, and row group statistics make it smaller and faster to read than CSV, measured on NYC taxi trips data with Polars, DuckDB, and PyArrow.</li>
<li><a href="https://tech.daniellbastos.com.br/posts/python-memory-management/">First Steps Into Memory Management in Python</a> – A quick introduction to how Python manages memory under the hood and how that might affect your code.</li>
<li><a href="https://realpython.com/python-application-layouts/">Python Project Structure: How to Choose the Right Layout</a> – Learn how to structure Python projects: pick between flat and <code>src/</code> layouts, organize your code, and apply the patterns to CLI, web, and GUI apps.</li>
<li><a href="https://dev.arie.bovenberg.net/blog/pendulum-cursed-plus-operator/">Pendulum and the Most Cursed <code>+</code> Operator in All of Python</a> – Pendulum, a popular Python datetime library, has a + operator that inspects the call stack to decide which answer to give you. The post explains how it ended up there, and why the design behind it, a “drop-in” subclass of datetime, still matters for your code now that the hack itself has been patched.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/justinmayer/django-benchmark">django-benchmark: Django Performance Benchmark Profiler</a></li>
<li><a href="https://github.com/derblub/django-upgrade-report">django-upgrade-report: Which Dependencies Block an Upgrade to Your Django Project?</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://peps.python.org/pep-0848/">PEP 848 – Generational Incremental Garbage Collection | peps.python.org</a></li>
<li><a href="https://discuss.python.org/t/reverting-the-incremental-gc-in-python-3-14-and-3-15/107014">Reverting the incremental GC in Python 3.14 and 3.15 - Core Development - Discussions on Python.org</a></li>
<li><a href="https://docs.python.org/3/whatsnew/3.14.html#whatsnew314-incremental-gc">Garbage Collection: Python 3.15.2 documentation</a></li>
<li><a href="https://realpython.com/python-memory-management/">Memory Management in Python – Real Python</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/how-python-manages-memory/">How Python Manages Memory</a></li>
<li><a href="https://realpython.com/courses/set-up-django-project/">How to Set Up a Django Project</a></li>
<li><a href="https://realpython.com/courses/astropy-astronomy/">Using Astropy for Astronomy With Python</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Python Pitfalls: Common Mistakes and How to Avoid Them
<p>What are common mistakes that Python beginners make, and how do you avoid them? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>We dig into an article about common pitfalls and mistakes new Python developers make. Some of the mistakes are due to Python doing exactly what you asked it to do. We also talk about Real Python resources for getting started with the language and building your development environment.</p>
<p>We also share other articles and projects from the Python community, including recent releases, a collection of new PEPs, and the results of two recent Python elections. We cover creating temporary files in Python, decoupling pure logic from Django’s ORM, a Python functions reference, a lightning-fast logger, and an online development environment for creating games.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/python-first-steps/">How to Use Python: Taking Your First Steps</a></p>
<p>Take your first steps with Python. Install it, run your first program, and work with variables, data types, loops, functions, and errors.</p>
</div>
<div class="alert alert-primary" role="alert">
<p><strong>Live Course Spotlight:</strong> <a href="https://realpython.com/workshops/python-for-beginners/">Python for Beginners: Code With Confidence</a></p>
<p>Learn the fundamentals of Python step-by-step in a friendly, interactive cohort. Build confidence writing code and understand the “why” behind Python’s core concepts.</p>
</div>
<div class="alert alert-primary" role="alert">
<p><strong>Free Kit:</strong> Get the <a href="https://realpython.com/kits/python-beginner/">Python Beginner Starter Kit</a> with a cheat sheet, a sample book chapter, a course, and a quiz. You only need a free Real Python account.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:05 – After a delay - Python 3.15.0 (final) is here!</li>
<li>00:02:41 – Python 3.10.22, 3.11.17, 3.12.15, 3.13.16 and 3.14.8 are now available!</li>
<li>00:03:30 – PEP 823 – None-aware access operators</li>
<li>00:04:40 – PEP 845: Leading-Dot Value Patterns</li>
<li>00:05:04 – PEP 846: Docstrings for Type Aliases</li>
<li>00:05:21 – PEP 848: Generational Incremental Garbage Collection</li>
<li>00:06:12 – 2026 PSF Board Election Results</li>
<li>00:06:31 – 2026 Python Packaging Council Election Results!</li>
<li>00:07:23 – 7 Python Mistakes Beginners Make</li>
<li>00:18:03 – An Effective Python Development Environment</li>
<li>00:21:37 – Creating Temporary Files in Python</li>
<li>00:24:30 – Video Course Spotlight</li>
<li>00:26:02 – 5 Design Patterns Used in My New Habit Tracker App</li>
<li>00:33:43 – Functions: A Complete Reference</li>
<li>00:36:50 – PYXEL STUDIO</li>
<li>00:39:38 – pyfastlogging: A Lightning Fast Logger, Written in Rust</li>
<li>00:41:54 – How Libraries Run Rust Inside Python (with PyO3)</li>
<li>00:44:43 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://blog.python.org/2026/10/python-3150-final-is-here/">Python 3.15.0 (final) is here!</a></li>
<li><a href="https://blog.python.org/2026/10/python-31022-31117/">Python 3.10.22, 3.11.17, 3.12.15, 3.13.16 and 3.14.8 are now available!</a></li>
<li><a href="https://peps.python.org/pep-0823/">PEP 823 – None-aware access operators</a></li>
<li><a href="https://peps.python.org/pep-0824/">PEP 824 – None-coalescing operators</a></li>
<li><a href="https://peps.python.org/pep-0845/">PEP 845: Leading-Dot Value Patterns (Draft)</a></li>
<li><a href="https://peps.python.org/pep-0846/">PEP 846: Docstrings for Type Aliases (Draft)</a></li>
<li><a href="https://peps.python.org/pep-0848/">PEP 848: Generational Incremental Garbage Collection (Draft)</a></li>
<li><a href="https://pyfound.blogspot.com/2026/09/announcing-2026-psf-board-election.html">2026 PSF Board Election Results</a></li>
<li><a href="https://pyfound.blogspot.com/2026/09/announcing-2026-python-packaging.html">2026 Python Packaging Council Election Results!</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://www.kdnuggets.com/7-python-mistakes-beginners-make-and-what-to-do-instead">7 Python Mistakes Beginners Make</a> – Some mistakes are because Python did exactly what you asked it to do. This article covers seven of them. For each one, you get the hidden cause, plus the first thing worth checking.</li>
<li><a href="https://realpython.com/effective-python-environment/">An Effective Python Development Environment</a> – Choose a Python development environment that helps you get coding. Find tutorials and courses on editors, uv, virtual environments, and useful tools.</li>
<li><a href="https://www.pythonmorsels.com/temporary-files/">Creating Temporary Files in Python</a> – How to create temporary files and directories in Python using the <code>tempfile</code> module’s <code>NamedTemporaryFile</code> and <code>TemporaryDirectory</code>.</li>
<li><a href="https://belderbos.dev/blog/python-patterns-django-habit-tracker/">5 Design Patterns Used in My New Habit Tracker App</a> – Bob has built a Django + HTMX-based habit tracker. This article covers five small Python and design patterns used in his code.</li>
<li><a href="https://mathspp.com/blog/pydonts/functions-a-complete-reference">Functions: A Complete Reference</a> – This article is a complete reference for all things related to functions in Python, including structure, signatures, <code>*args</code>, <code>**kwargs</code>, using functions as objects, and more.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://www.pyxelstudio.net/">PYXEL STUDIO</a></li>
<li><a href="https://pypi.org/project/pyfastlogging/">pyfastlogging: A Lightning Fast Logger, Written in Rust</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/">Install packages in a virtual environment using pip and venv - Python Packaging User Guide</a></li>
<li><a href="https://realpython.com/python-virtual-environments-a-primer/">Python Virtual Environments: A Primer – Real Python</a></li>
<li><a href="https://pydevtools.com/handbook/how-to/how-to-require-a-virtual-for-installing-packages/">Require a Virtualenv for pip Installs - pydevtools</a></li>
<li><a href="https://blog.python.org/2026/09/language-summit-2026-namespaces/">One namespace to namespace them all (Python Language Summit 2026) - Python Insider</a></li>
<li><a href="https://commitgraph.app/">commitgraph - Commit to what matters. Every day.</a></li>
<li><a href="https://talkpython.fm/episodes/show/563/getting-started-with-rust-as-python-devs">Getting Started with Rust as Python Devs - Talk Python To Me Podcast</a></li>
<li><a href="https://belderbos.dev/blog/how-libraries-run-rust-inside-python/">How Libraries Run Rust Inside Python (with PyO3) - Bob Belderbos</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/setting-up-python/">Python Basics: Setting Up Python</a></li>
<li><a href="https://realpython.com/courses/python-basics-first-program/">Python Basics: Code Your First Python Program</a></li>
<li><a href="https://realpython.com/courses/python-first-steps/">How to Use Python: Taking Your First Steps</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Python 3.15: Exploring the New Features
<p>Python 3.15 is (almost*) here! Christopher Trudeau and Bartosz Zaczyński return to discuss the new version. Bartosz coordinated the series of preview articles with members of the Real Python team and wrote the showcase tutorial, “Python 3.15: Cool New Features for You to Try.” Christopher’s video course “What’s New in Python 3.15” covers the topics from the article and shows the new features in action.</p>
<p>Christopher and Bartosz dug into the release to create code examples of the new features for the tutorial and course. We cover the new built-in types, unpacking in comprehensions, and developer experience enhancements. We also look into the performance improvements, including lazy imports, the upgraded JIT compiler, and a new sampling profiler.</p>
<p>We share our thoughts on the updates and offer advice about incorporating them into your projects. We also discuss when you should start running Python 3.15.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/whats-new-in-python-315/">What’s New in Python 3.15</a></p>
<p>Explore the new features in Python 3.15, including lazy imports, frozendict, sentinel values, a sampling profiler, and a faster JIT.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:00:02 – * NOTE: Python 3.15 release delayed!</li>
<li>00:03:35 – Real Python 3.15 Preview Articles and Video Course</li>
<li>00:04:40 – Sentinel Values</li>
<li>00:08:55 – Lazy Imports</li>
<li>00:14:48 – Unpacking in Comprehensions</li>
<li>00:17:12 – Mathematical functions</li>
<li>00:20:07 – Sampling Profiler</li>
<li>00:27:43 – Video Course Spotlight</li>
<li>00:29:18 – frozendict</li>
<li>00:33:12 – The speed round of features</li>
<li>00:36:04 – Continued work on free-threaded Python and upgrading the JIT</li>
<li>00:39:34 – Upgrading to 3.15</li>
<li>00:44:35 – Thanks and goodbye</li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://discuss.python.org/t/python-3-15-following-tradition-lets-have-a-surprise-rc3/109313">* Python 3.15: following tradition, let’s have a surprise rc3! - Core Development - Discussions on Python.org</a></li>
<li><a href="https://realpython.com/python315-new-features/">Python 3.15: Cool New Features for You to Try – Real Python</a></li>
<li><a href="https://realpython.com/python315-sentinel-values/">Python 3.15 Preview: Sentinel Values – Real Python</a></li>
<li><a href="https://realpython.com/python315-lazy-imports/">Python 3.15 Preview: Lazy Imports – Real Python</a></li>
<li><a href="https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-unpacking-in-comprehensions">Unpacking in Comprehensions -What’s new in Python 3.15 — Python 3.15 documentation</a></li>
<li><a href="https://docs.python.org/3.15/library/math.html">math — Mathematical functions — Python 3.15 documentation</a></li>
<li><a href="https://realpython.com/python315-sampling-profiler/">Python 3.15 Preview: Sampling Profiler</a></li>
<li><a href="https://peps.python.org/pep-0799/">PEP 799 – A dedicated profiling package for organizing Python profiling tools</a></li>
<li><a href="https://realpython.com/python315-frozendict/">Python 3.15 Preview: frozendict</a></li>
<li><a href="https://peps.python.org/pep-0814/">PEP 814 – Add frozendict built-in type</a></li>
<li><a href="https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-more-color">More color - What’s new in Python 3.15</a></li>
<li><a href="https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-improved-error-messages">Improved error messages - What’s new in Python 3.15</a></li>
<li><a href="https://realpython.com/">Python 3.15 Preview: UTF-8 by Default</a></li>
<li><a href="https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-abi3t">PEP 803: Stable ABI for free-threaded builds - What’s new in Python 3.15</a></li>
<li><a href="https://realpython.com/python315-jit-compiler/">Python 3.15 Preview: Upgraded JIT Compiler</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://peps.python.org/pep-0810/">PEP 810 – Explicit lazy imports</a></li>
<li><a href="https://github.com/googleapis/google-cloud-python/pull/17591">Implement native PEP 0810 lazy loading by hebaalazzeh - google-cloud-python</a></li>
<li><a href="https://peps.python.org/pep-0798/">PEP 798 – Unpacking in Comprehensions</a></li>
<li><a href="https://peps.python.org/pep-0448/">PEP 448 – Additional Unpacking Generalizations</a></li>
<li><a href="https://www.youtube.com/watch?v=f1x4X83CDSA">Tachyon: Python 3.15’s sampling profiler is faster…- Pablo Galindo Salgado, Laszlo Kiss Kollar - YouTube</a></li>
<li><a href="https://www.youtube.com/watch?v=ShCV_JhBSbo">The amazing and varied life of Tachyon particles in Star Trek TNG - YouTube</a></li>
<li><a href="https://realpython.com/podcasts/rpp/128/">Episode #128: Using a Memory Profiler in Python & What It Can Teach You</a></li>
<li><a href="https://realpython.com/podcasts/rpp/172/">Episode #172: Measuring Multiple Facets of Python Performance With Scalene</a></li>
<li><a href="https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-jit">Upgraded experimental JIT compiler - What’s new in Python 3.15</a></li>
<li><a href="https://docs.python.org/3.15/whatsnew/3.15.html">What’s new in Python 3.15 — Python 3.15 documentation</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/understand-list-comprehensions/">Understanding Python List Comprehensions</a></li>
<li><a href="https://realpython.com/courses/whats-new-python-314/">What's New in Python 3.14</a></li>
<li><a href="https://realpython.com/courses/whats-new-in-python-315/">What's New in Python 3.15</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
#563: Getting Started with Rust as Python Devs
Lint the entire CPython code base from scratch. It takes 0.3 seconds. Three blinks of an eye.
That is ruff, and it is written in Rust. So are Pydantic, Polars, uv, and Granian. Rust shows up in Python three ways: tools that happen to be Rust, libraries Python imports, and servers that run Python inside Rust. This is Rust for Python developers, not Rust experts.
Christopher Trudeau is back on Talk Python to discuss Rust and his latest course Up and Running with Rust. The core rule is that only one thing can own a value at a time. Pass it around freely in Python and the garbage collector cleans up. Do that in Rust and it will not compile.
Episode sponsors
Sentry Error Monitoring, Code talkpython26
Python in Production
Talk Python Courses
Links from the show
Up and Running with Rust course: training.talkpython.fm
Rust: rust-lang.org
pydantic: pydantic.dev
ruff: docs.astral.sh
granian: github.com
By example: doc.rust-lang.org
rust-lang.org: rust-lang.org
rustup.rs: rustup.rs
crates.io: crates.io
main.rs: main.rs
PyO3: github.com
https://github.com/ritwiktiwari/awesome-python-rs: github.com
ty: docs.astral.sh
pyrefly: pyrefly.org
uv: github.com
polars: pola.rs
Watch this episode on YouTube: youtube.com
Episode #563 deep-dive: talkpython.fm/563
Episode transcripts: talkpython.fm
Theme Song: Developer Rap
🥁 Served in a Flask 🎸: talkpython.fm/flasksong
---== Don't be a stranger ==---
YouTube: youtube.com/@talkpython
Bluesky: @talkpython.fm
Mastodon: @talkpython@fosstodon.org
X.com: @talkpython
Michael on Bluesky: @mkennedy.codes
Michael on Mastodon: @mkennedy@fosstodon.org
Michael on X.com: @mkennedy
Django Developers Survey Results & Reproducible Python Builds
<p>What are the latest trends uncovered in the 2026 Django Developers Survey? How are Django users employing LLMs in their development process? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>We discuss a summary by Will Vincent about this year’s Django Developers Survey. The survey draws on responses from nearly 3,500 developers across more than 40 countries. It provides a look at how developers are adapting to AI workflows and which tools they’re embracing.</p>
<p>We dig into a post from Brett Cannon about reproducible builds in Python. It covers the importance of creating an independently verifiable, repeatable build of CPython and other associated tools. The post explains why Python isn’t there yet and outlines the direction of the work still needed.</p>
<p>We also share other articles and projects from the Python community, including recent releases, upcoming PSF elections, Polars vs SQL differences nobody is talking about, creating Django unsubscribe links without a Login, a library to make measurement units easier through Pydantic, and a tool to convert <code>if-else</code> code to <code>match</code> statements.</p>
<p>This episode is sponsored by <a href="https://sixfeetup.com/?utm_source=realpython">Six Feet Up</a>.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Video Course Spotlight:</strong> <a href="https://realpython.com/courses/get-started-with-ollama/">How to Get Started With Ollama</a></p>
<p>Learn how to install Ollama, pull local models, and connect them to your Python code using the chat and text generation interfaces.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:46 – Python 3.15.0 candidate 2 is here!</li>
<li>00:03:10 – Django 6.1.1 release notes</li>
<li>00:03:20 – Wagtail 8.0 release notes</li>
<li>00:04:27 – RISC-V Is Now Officially Supported by CPython</li>
<li>00:05:19 – PEP 843: Export Statement for DRY Re-Exports</li>
<li>00:06:27 – 2026 PSF Board Election Interviews</li>
<li>00:07:07 – Up and Running with Rust Course</li>
<li>00:07:56 – Guido Comment on PEP 805: Safe Parallel Python</li>
<li>00:09:56 – The Polars vs SQL Differences Nobody Is Talking About</li>
<li>00:16:55 – Sponsor: Six Feet Up</li>
<li>00:17:50 – Unsubscribe Links Without a Login: Django Signing</li>
<li>00:20:56 – What’s Missing to Have Reproducible Builds on PyPI</li>
<li>00:27:09 – Video Course Spotlight</li>
<li>00:28:44 – The Python Community’s Institutional Response to the Astral Acquisition Has Begun</li>
<li>00:29:57 – The State of Django 2026: Boring Is So Back</li>
<li>00:40:13 – matchify: Converts <code>if-else</code> Code to <code>match</code> Statements</li>
<li>00:43:14 – pydantic-pint: Pydantic Pint Quantities</li>
<li>00:45:16 – Thanks and goodbye - Submit topics to PyCoders Link</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://blog.python.org/2026/09/python-3150-rc2/">Python 3.15.0 candidate 2 is here! - Python Insider</a></li>
<li><a href="https://docs.djangoproject.com/en/6.1/releases/6.1.1/">Django 6.1.1 release notes - Django documentation</a></li>
<li><a href="https://wagtail.org/blog/cms-with-ai-not-ai-cms-wagtail-80s-new-api/">CMS With AI, Not AI CMS: Wagtail 8.0’s New API</a> – Wagtail 8 includes a new API built on Django Ninja and Pydantic, to automate common admin tasks with and without agents. 50+ operations derived from projects’ existing Python/Django code, mimicking the admin panel but via endpoints and an official CLI.</li>
<li><a href="https://docs.wagtail.org/en/stable/releases/8.0.html">Wagtail 8.0 release notes — Wagtail Documentation 8.0 documentation</a></li>
<li><a href="https://blog.python.org/2026/08/riscv-now-officially-supported/">RISC-V Is Now Officially Supported by CPython</a></li>
<li><a href="https://peps.python.org/pep-0843/">PEP 843: Export Statement for DRY Re-Exports (Draft)</a></li>
<li><a href="https://peps.python.org/pep-0842/">PEP 842: Module Exports (Withdrawn)</a></li>
<li><a href="https://pyfound.blogspot.com/search/label/2026-psf-board-election-candidate-interview">2026 PSF Board Election Interviews</a> – This is a collection of interviews of the various candidates running for the Python Software Foundation Board. Many of the posts also include links to AMA sessions.</li>
<li><a href="https://pyfound.blogspot.com/2026/09/the-2026-psf-board-election-is-open.html">Python Software Foundation News: The 2026 PSF Board Election is Open!</a></li>
<li><a href="https://pyfound.blogspot.com/2026/09/inaugural-python-packaging-council.html">Python Software Foundation News: Inaugural Python Packaging Council Election: Voting is now open!</a></li>
<li><a href="https://training.talkpython.fm/courses/up-and-running-with-rust">Up and Running with Rust Course</a></li>
<li><a href="https://discuss.python.org/t/pep-805-safe-parallel-python/108670/66">Guido Comment on PEP 805: Safe Parallel Python</a> </li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://labs.quansight.org/blog/polars-vs-sql-differences">The Polars vs SQL Differences Nobody Is Talking About</a> – Some problems can be attacked with either SQL or Polars, but subtle differences in how the two mechanisms work can run you into trouble. Learn more about these potential gotchas.</li>
<li><a href="https://belderbos.dev/blog/unsubscribe-without-login-django-signing/">Unsubscribe Links Without a Login: Django Signing</a> – Django has a signing module that makes it easy to build an unsubscribe link that works with no login and no session: <code>token = signing.dumps(recipient.pk, salt=UNSUBSCRIBE_SALT)</code>. The token itself is the credential, and it ships with Django out of the box.</li>
<li><a href="https://snarky.ca/whats-missing-to-have-reproducible-builds-on-pypi/">What’s Missing to Have Reproducible Builds on PyPI</a> – A reproducible build is a way of creating an independently verifiable, repeatable build of CPython and other associated tools. This post explains why Python isn’t there yet and why it is important.</li>
<li><a href="https://dev.to/peytongreen_dev/the-python-communitys-institutional-response-to-the-astral-acquisition-has-begun-98e">The Python Community’s Institutional Response to the Astral Acquisition Has Begun</a> – Brett Cannon posted on discuss.python.org (March 23): a PEP is coming, the <code>python/prebuilt-cpython</code> repo already exists, and the PSF has been building an official prebuilt relocatable CPython distribution since October 2025. Covers what’s actually being built, what it means for uv/ruff/python-build-standalone, and why the Astral upstream patches and PSF alternative aren’t in conflict.</li>
<li><a href="https://blog.jetbrains.com/pycharm/2026/08/the-state-of-django-2026-boring-is-so-back/">The State of Django 2026: Boring Is So Back</a> – A summary of this year’s State of Django report which draws on responses from nearly 3,500 developers across more than 40 countries: from students in their first year to veterans with decades of experience.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/15r10nk/matchify">matchify: Converts <code>if-else</code> Code to <code>match</code> Statements</a></li>
<li><a href="https://github.com/tylerh111/pydantic-pint">pydantic-pint: Pydantic Pint Quantities</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://realpython.com/podcasts/rpp/224/">Episode #224: Narwhals: Expanding DataFrame Compatibility Between Libraries</a></li>
<li><a href="https://labs.quansight.org/blog/duckdb-when-used-to-frames">Mastering DuckDB when you’re used to pandas or Polars</a></li>
<li><a href="https://realpython.com/podcasts/rpp/297/">Episode #297: Improving Python Through PEPs and Protocols</a></li>
<li><a href="https://peps.python.org/pep-0770/">PEP 770 – Improving measurability of Python packages with Software Bill-of-Materials</a></li>
<li><a href="https://www.youtube.com/watch?v=x9K3xPmi_tg">Phantom Dependencies: is your requirements.txt haunted? - Seth Michael Larson - YouTube</a></li>
<li><a href="https://github.com/python/prebuilt-cpython">prebuilt-cpython - GitHub</a></li>
<li><a href="https://htmx.org/"></> htmx - high power tools for html</a></li>
<li><a href="https://pint.readthedocs.io/en/stable/">Pint: makes units easy — pint 0.25.3rc1.dev1+g5e79411e1 documentation</a></li>
<li><a href="https://realpython.com/courses/astrophysics-pandas-matplotlib/">Exploring Astrophysics in Python With pandas and Matplotlib – Real Python</a></li>
<li><a href="https://pycoders.com/submissions">PyCoder’s Weekly - Submit a Link</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/astrophysics-pandas-matplotlib/">Exploring Astrophysics in Python With pandas and Matplotlib</a></li>
<li><a href="https://realpython.com/courses/connecting-llms-data-python-mcp-servers/">Connecting LLMs to Your Data With Python MCP Servers</a></li>
<li><a href="https://realpython.com/courses/get-started-with-ollama/">How to Get Started With Ollama</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Exploring Complex Systems & Maintainable Data Science Pipelines
<p>What are the key characteristics of complex systems, and what are practical patterns for tackling complex coding problems? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>Christopher covers an article about working on complex systems. The piece explores the distinction between complicated and complex problems. Each requires a fundamentally different approach to solve.</p>
<p>We dig into a couple of tutorials about creating repeatable data science pipelines. One covers validating DataFrames and tables with the pointblank library to build into a continuous integration workflow. The other explores how to use configuration files to build modular pipelines that avoid the pitfalls of hardcoded paths and parameters. </p>
<p>We also share other articles and projects from the Python community, including recent releases, three Python Enhancement Proposals (PEPs), the difficulties with breaking up lines of text, a static site generator for marimo notebooks, and a static analyzer for malicious Python code.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/sending-emails-using-python/">Sending Emails Using Python</a></p>
<p>Learn how to send emails with Python using SMTP and smtplib, attach files, format HTML messages, and personalize bulk emails.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:24 – Python 3.12.14, 3.11.16 and 3.10.21 Released</li>
<li>00:03:02 – Django Is Moving to an Annual Release Cycle</li>
<li>00:04:17 – PEP 828: Supporting ‘Yield From’ in Asynchronous Generators</li>
<li>00:04:56 – PEP 841: Adding Frozen Syntax to Optimize Immutable Types</li>
<li>00:07:04 – PEP 844: <code>public</code> and <code>private</code> Builtins</li>
<li>00:10:09 – Validating Data With Pointblank in Python</li>
<li>00:18:22 – Working on Complex Systems: Patterns I Learned at Google</li>
<li>00:22:14 – Video Course Spotlight</li>
<li>00:23:58 – Hydra for Python Configuration: Build Modular and Maintainable Pipelines</li>
<li>00:29:29 – Breaking Up (Lines) Is Hard to Do</li>
<li>00:35:00 – marimo-book: Static Site Generator for <code>marimo</code> Notebooks</li>
<li>00:38:06 – marimo-lsp: A language server and VS Code extension for marimo</li>
<li>00:38:31 – hexora: Static analysis of malicious Python code</li>
<li>00:40:01 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://blog.python.org/2026/08/python-31214-31116-31021/">Python 3.12.14, 3.11.16 and 3.10.21 Released</a></li>
<li><a href="https://www.djangoproject.com/weblog/2026/aug/10/annual-release-cycle/">Django Is Moving to an Annual Release Cycle</a></li>
<li><a href="https://peps.python.org/pep-0828/">PEP 828: Supporting ‘Yield From’ in Asynchronous Generators (Accepted)</a></li>
<li><a href="https://peps.python.org/pep-0841/">PEP 841: Adding Frozen Syntax to Optimize Immutable Types (Draft)</a></li>
<li><a href="https://peps.python.org/pep-0844/">PEP 844: <code>public</code> and <code>private</code> Builtins (Draft)</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://realpython.com/python-pointblank/">Validating Data With Pointblank in Python</a> – Learn how to validate data in Python with Pointblank: declare quality checks, split clean from failing rows, and rerun validation plans from YAML.</li>
<li><a href="https://read.thecoder.cafe/p/complex-systems">Working on Complex Systems: Patterns I Learned at Google</a> – Explore the key characteristics of complex systems and learn practical patterns for tackling complex problems</li>
<li><a href="https://www.manning.com/books/the-coder-cafe">The Coder Cafe - Teiva Harsanyi</a> – The Coder Cafe introduces vital software engineering concepts that will upgrade your day-to-day practice, regardless of your skill level. Discount Code (CODERCAFE40) Expires November 21st 2026.</li>
<li><a href="https://codecut.ai/stop-hard-coding-in-a-data-science-project-use-configuration-files-instead/">Hydra for Python Configuration: Build Modular and Maintainable Pipelines</a> – Hardcoded paths and parameters can quickly drift out of sync across a data science project’s scripts. This article shows how to move them into Hydra configuration files, access values with dot notation, override settings from the command line, swap entire configuration groups, and run experiment sweeps with a single multi-run flag.</li>
<li><a href="https://www.b-list.org/weblog/2026/aug/10/newlines/">Breaking Up (Lines) Is Hard to Do</a> – Here’s a seemingly simple question: given a chunk of multi-line text, how do you split it and return an array? Unicode makes everything harder than it might first seem.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/ljchang/marimo-book">marimo-book: Static Site Generator for <code>marimo</code> Notebooks</a></li>
<li><a href="https://github.com/marimo-team/marimo-lsp">marimo-lsp: A language server and VS Code extension for marimo</a></li>
<li><a href="https://github.com/rushter/hexora">hexora: Static analysis of malicious Python code</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://pypi.org/project/pointblank/">pointblank - PyPI</a></li>
<li><a href="https://realpython.com/podcasts/rpp/274/">Episode #274: Preparing Data Science Projects for Production With Khuyen Tran</a></li>
<li><a href="https://marimobook.org/">marimo-book</a></li>
<li><a href="https://dartbrains.org/">DartBrains - How can we understand how the brain works?</a></li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=marimo-team.vscode-marimo">marimo - Visual Studio Marketplace</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/getting-started-with-marimo-notebooks/">Getting Started With marimo Notebooks</a></li>
<li><a href="https://realpython.com/courses/managing-imports-dunder-all/">Managing Imports With Python's <strong>all</strong></a></li>
<li><a href="https://realpython.com/courses/sending-emails-using-python/">Sending Emails Using Python</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Improving NumPy Performance on Free-Threaded Python
<p>What bottlenecks were preventing NumPy from scaling on free-threaded Python? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>Christopher shares a recent article on the work done in NumPy to make multi-threaded workloads scale on the free-threaded build of CPython. It covers how removing the Global Interpreter Lock (GIL) is not enough on its own and how profiling revealed hidden bottlenecks in NumPy and CPython.</p>
<p>We also share other articles and projects from the Python community, including recent releases, a pair of announcements from PyPI, a tool for crawling your Django project, SIMD in pure Python, managing wildcard imports, a publication-quality Python Data Visualization library, and a tool to review your Django schema.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Spotlight:</strong> <a href="https://realpython.com/products/modern-oop-book/">Modern Object-Oriented Python Book</a></p>
<p>Master classes, Python’s data model, and object-oriented design with Modern Object-Oriented Python. The best of Real Python’s OOP tutorials, curated into one book and fully up to date for modern Python.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:26 – Python 3.15.0 candidate 1 is here!</li>
<li>00:02:47 – Python 3.14.7 and 3.13.15 are now available!</li>
<li>00:03:00 – Django 6.1 released</li>
<li>00:03:39 – Planned Updates to the PyPI User Interface</li>
<li>00:04:13 – PyPI Releases Now Reject New Files After 14 Days</li>
<li>00:05:07 – PEP 837 – Extensible JSON serialization</li>
<li>00:06:20 – PEP 842: Module Exports</li>
<li>00:07:51 – Introducing <code>django-crawl</code></li>
<li>00:12:02 – SIMD in Pure Python</li>
<li>00:18:29 – Managing Imports With Python’s <code>__all__</code></li>
<li>00:29:34 – Spotlight: Modern Object-Oriented Python Book</li>
<li>00:30:53 – Scaling NumPy on Free-Threaded Python</li>
<li>00:37:53 – cnsplots: Python Data Visualization for Complex Datasets</li>
<li>00:42:19 – django-orm-lens: Django Schema Review</li>
<li>00:45:14 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://blog.python.org/2026/08/python-3150-rc1/">Python 3.15.0 candidate 1 is here! - Python Insider</a></li>
<li><a href="https://blog.python.org/2026/08/python-3147-31315/">Python 3.14.7 and 3.13.15 are now available! - Python Insider</a></li>
<li><a href="https://www.djangoproject.com/weblog/2026/aug/05/django-61-released/">Django 6.1 released - Weblog - Django</a></li>
<li><a href="https://blog.pypi.org/posts/2026-07-22-ui-updates/">Planned Updates to the PyPI User Interface</a> – Over the next few months a new user interface will be rolled out for the Python packaging website, PyPI. The rollout will be done in phases to make sure it is rock solid and to get community feedback. This post talks about the history of PyPI’s UI and what is changing.</li>
<li><a href="https://blog.pypi.org/posts/2026-07-22-releases-now-reject-new-files-after-14-days/">PyPI Releases Now Reject New Files After 14 Days</a> – “The Python Package Index (PyPI) now rejects new files being uploaded to releases that are older than 14 days. This restriction was put in place to prevent old and long-stable releases from being poisoned”</li>
<li><a href="https://peps.python.org/pep-0837/">PEP 837 – Extensible JSON serialization</a></li>
<li><a href="https://peps.python.org/pep-0842/">PEP 842: Module Exports</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://adamj.eu/tech/2026/07/22/introducing-django-crawl/">Introducing <code>django-crawl</code></a> – During a recent site migration, Adam used the Django test harness to crawl his site looking for missing security headers. In the process he uncovered seven other bugs for a project that had 100% code coverage. He has consolidated the crawling technique for testing into a library: <code>django-crawl</code>.</li>
<li><a href="https://www.da.vidbuchanan.co.uk/blog/python-swar.html">SIMD in Pure Python</a> – SIMD is Single Instruction, Multiple Data, an approach that does calculations with vectors of data sets. Python doesn’t support it natively, but libraries like NumPy allow you to code this way.</li>
<li><a href="https://purplesyringa.moe/blog/thoughts-on-simd-in-pure-python/">Thoughts on “SIMD in Pure Python” - purplesyringa’s blog</a></li>
<li><a href="https://realpython.com/courses/managing-imports-dunder-all/">Managing Imports With Python’s <code>__all__</code></a> – Learn how Python’s dunder all variable controls wildcard imports and shapes the public API your packages and modules expose.</li>
<li><a href="https://labs.quansight.org/blog/scaling-numpy-on-free-threaded-python">Scaling NumPy on Free-Threaded Python</a> – A recap on the work done in NumPy and CPython to make multi-threaded NumPy workloads scale on the free-threaded build of CPython.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/faridrashidi/cnsplots">cnsplots: Python Data Visualization for Complex Datasets</a></li>
<li><a href="https://github.com/FROWNINGdev/django-orm-lens">django-orm-lens: Django Schema Review</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://www.bitecode.dev/p/whats-up-python-__json__-__export__">What’s up Python? <code>__json__</code>, <code>__export__</code> and Astral stuff</a></li>
<li><a href="https://realpython.com/podcasts/rpp/97/">Episode #97: Improving Your Django and Python Developer Experience</a></li>
<li><a href="https://realpython.com/python-all-attribute/">Python’s <code>__all__</code>: Packages, Modules, and Wildcard Imports – Tutorial</a></li>
<li><a href="https://realpython.com/quizzes/managing-imports-dunder-all/">Quiz: Managing Imports With Python’s <code>__all__</code></a></li>
<li><a href="https://www.youtube.com/watch?v=Ms3QdGIzltU&t=1s">Smoke - The Amazing Hamster, Storing Food - YouTube</a></li>
<li><a href="https://realpython.com/products/modern-oop-book/">Modern Object-Oriented Python Book – Real Python</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/python-modules-packages/">Python Modules and Packages: An Introduction</a></li>
<li><a href="https://realpython.com/courses/numpy-techniques-practical-examples/">NumPy Techniques and Practical Examples</a></li>
<li><a href="https://realpython.com/courses/managing-imports-dunder-all/">Managing Imports With Python's <strong>all</strong></a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Should You Understand Your Entire Python Codebase?
<p>Should you understand the entirety of your codebase? How familiar are you with Python’s built-in functions? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>We discuss a recent article by Sean Goedecke titled “In Defense of Not Understanding Your Codebase.” We dig into the differences in the scale of software projects and the factors that can obscure understanding of an entire codebase. We cover how opinions and practices people often argue for are based on the development practices from decades ago.</p>
<p>Christopher shares his recent video course that explores Python’s built-in functions. The course is divided into sections to help you find the right built-in for tasks involving math, data types, iterables, and I/O. We discuss which of these functions are frequently used in our code.</p>
<p>We also share other articles and projects from the Python community, including recent releases, querying with f-expressions in Django, replacing <code>if-else</code> chains, a Rust-based replacement for Python’s <code>json</code> module, and a couple of Python cheat sheet resources.</p>
<p>This episode is sponsored by <a href="https://hydradb.com/?utm_source=real-python&utm_medium=real%20python&utm_campaign=dev-tool-listing&utm_content=podcast">HydraDB</a>.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/exploring-pythons-built-in-functions/">Exploring Python’s Built-in Functions</a></p>
<p>Learn Python’s built-in functions for math, data types, iterables, and I/O, and when to use each to write more Pythonic code.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:29 – Christopher’s Python News Song</li>
<li>00:03:18 – Python 3.15.0 Beta 4 Released</li>
<li>00:03:39 – PEP 838: Adding <code>python-version</code> to <code>pyvenv.cfg</code></li>
<li>00:04:59 – PEP 840: Name Resolution in Class Namespaces</li>
<li>00:06:42 – Stop Using <code>if-else</code> Chains</li>
<li>00:13:46 – Sponsor: HydraDB</li>
<li>00:14:44 – Nifty Django Feature: F Expressions</li>
<li>00:20:23 – In Defense of Not Understanding Your Codebase</li>
<li>00:34:13 – Exploring Python’s Built-in Functions</li>
<li>00:45:26 – Video Course Spotlight</li>
<li>00:46:57 – Python strftime/strptime Directive Cheat Sheet</li>
<li>00:50:22 – Itertools Cheatsheet</li>
<li>00:52:59 – Introducing <code>django-orjson</code></li>
<li>00:55:33 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://blog.python.org/2026/07/python-3150-beta-4/">Python 3.15.0 Beta 4 Released</a></li>
<li><a href="https://peps.python.org/pep-0838/">PEP 838: Adding <code>python-version</code> to <code>pyvenv.cfg</code> (Added)</a></li>
<li><a href="https://peps.python.org/pep-0840/">PEP 840: Name Resolution in Class Namespaces (Added)</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://www.kdnuggets.com/stop-using-if-else-chains-use-the-registry-pattern-in-python-instead">Stop Using <code>if-else</code> Chains</a> – Learn a cleaner, more extensible way to dispatch logic in Python using dictionaries and function pointers instead of long if-else chains.</li>
<li><a href="https://www.better-simple.com/django/2026/07/02/nifty-feature-f-expressions/">Nifty Django Feature: F Expressions</a> – Django’s F-Expression provides a way of querying fields from the ORM. They’re particularly handy to traverse relationships in more complex queries.</li>
<li><a href="https://docs.djangoproject.com/en/6.0/ref/models/expressions/#f-expressions">F() Expressions - Django Documentation</a></li>
<li><a href="https://www.seangoedecke.com/in-defense-of-not-understanding-your-codebase/">In Defense of Not Understanding Your Codebase</a> – In this opinion piece, Sean argues that there is a difference in the thought process between maintaining smaller software projects vs larger ones, and that the former is over represented in engineering discussion in the internet.</li>
<li><a href="https://realpython.com/courses/exploring-pythons-built-in-functions/">Exploring Python’s Built-in Functions</a> – Learn Python’s built-in functions for math, data types, iterables, and I/O, and when to use each to write more Pythonic code.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://inventwithpython.com/strftime/">Python strftime/strptime Directive Cheat Sheet</a></li>
<li><a href="https://mathspp.com/blog/itertools-cheatsheet">Itertools Cheatsheet</a> – Cheatsheet with visual diagrams that explain how the iterables from itertools work.</li>
<li><a href="https://adamj.eu/tech/2026/07/15/introducing-django-orjson/">Introducing <code>django-orjson</code></a> – <code>orjson</code> is a Rust-based replacement for Python’s <code>json</code> module. So what would Adam Johnson do with it? Make it easier to use in Django of course.</li>
<li><a href="https://github.com/ijl/orjson">orjson: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy</a></li>
<li><a href="https://django-orjson.readthedocs.io/en/latest/">django-orjson documentation</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://realpython.com/primer-on-python-decorators/#registering-plugins">Primer on Python Decorators - Registering Plugins</a></li>
<li><a href="https://realpython.com/python-built-in-functions/">Python Built-in Functions: A Complete Guide</a></li>
<li><a href="https://realpython.com/cheatsheets/python/">Python Cheat Sheet – Real Python</a></li>
<li><a href="https://nedbatchelder.com/text/which-py">What’s in which Python - Ned Batchelder</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/python-datetime-module/">Using Python's datetime Module</a></li>
<li><a href="https://realpython.com/courses/basics-conditional-logic-control-flow/">Python Basics: Conditional Logic and Control Flow</a></li>
<li><a href="https://realpython.com/courses/exploring-pythons-built-in-functions/">Exploring Python's Built-in Functions</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Free-Threaded Python's History & uv in Production
<p>How many attempts have been made to remove Python’s Global Interpreter Lock (GIL)? How do they compare to the current approach? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>Christopher shares a recent article about Thomas Wouters’ talk at PyCon US 2026. The talk, titled “Free-threaded Python: past, present, and future,” covers the efforts to remove the GIL starting in 1996. He explains that threads are complex, but they allow multiple tasks to run concurrently within a single process and its address space. </p>
<p>The GIL is how CPython implements threading. The GIL protects Python objects and their reference counts, which determine the current objects in use. The talk also looks forward and shares the current work to remove the GIL, now named free-threaded Python, and the goals for the near future. </p>
<p>We also share other articles and projects from the Python community, including community announcements, a roundup of recent Real Python tutorials and video courses, using <code>uv</code> in Production, employing Wagtail as Django admin on steroids, managing and measuring Python code quality, a pure-Python implementation of <code>jq</code>, and a project to bring interactivity to plotnine.</p>
<p>This episode is sponsored by <a href="https://www.endorlabs.com/platform/developer?utm_source=Real-python-podcast&utm_medium=video&utm_campaign=auri-for-developers">AURI by Endor Labs</a></p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/thread-safety-locks-other-techniques/">Thread Safety in Python: Locks and Other Techniques</a></p>
<p>In this video course, you’ll learn about the issues that can occur when your code is run in a multithreaded environment. Then you’ll explore the various synchronization primitives available in Python’s threading module, such as locks, which help you make your code safe.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:03:08 – PEP 836: JIT Go Brrr: The Path to a Supported JIT Compiler for CPython</li>
<li>00:04:34 – PyCon US 2026 Videos Are Up</li>
<li>00:04:53 – Thinking About Running for the PSF Board? Let’s Talk!</li>
<li>00:05:30 – How to Get Started With the GitHub Copilot CLI</li>
<li>00:06:27 – Python 3.15 Preview: Upgraded JIT Compiler</li>
<li>00:07:23 – Testing MCP Servers With a Python MCP Client</li>
<li>00:08:10 – How to Use GitHub</li>
<li>00:08:50 – Why I Wrote PEP 832: Virtual Environment Discovery</li>
<li>00:09:46 – Free-Threaded Python: Past, Present, and Future</li>
<li>00:16:51 – Sponsor: AURI by EndorLabs</li>
<li>00:17:38 – <code>uv</code> in Production: The Speed Is Real, the Integration Isn’t Free</li>
<li>00:26:18 – Wagtail as Django Admin on Steroids</li>
<li>00:29:52 – Video Course Spotlight</li>
<li>00:31:11 – Managing and Measuring Python Code Quality</li>
<li>00:43:10 – purejq: A Pure-Python Implementation of <code>jq</code></li>
<li>00:46:41 – ninejs: Bringing ✨interactivity✨ to plotnine</li>
<li>00:49:15 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://peps.python.org/pep-0836/">PEP 836: JIT Go Brrr: The Path to a Supported JIT Compiler for CPython (Draft)</a></li>
<li><a href="https://discuss.python.org/t/pep-836-jit-go-brrr-the-path-to-a-supported-jit-compiler-for-cpython/108010">The Path to a Supported JIT Compiler for CPython</a></li>
<li><a href="https://www.youtube.com/c/pyconus">PyCon US 2026 Videos Are Up</a></li>
<li><a href="https://pyfound.blogspot.com/2026/07/thinking-about-running-for-psf-board.html">Thinking About Running for the PSF Board? Let’s Talk!</a> – The Python Software Foundation Board has announced two office-hour sessions dedicated to giving information on running for the PSF Board. If you’re thinking of running in the upcoming election, these sessions can help you understand the ins and outs.</li>
</ul>
<p>Real Python News:</p>
<ul>
<li><a href="https://realpython.com/github-copilot-cli/">How to Get Started With the GitHub Copilot CLI – Tutorial</a></li>
<li><a href="https://realpython.com/courses/managing-and-measuring-python-code-quality/">Managing and Measuring Python Code Quality – Video Course</a><a href="https://realpython.com/python315-jit-compiler/">Python 3.15 Preview: Upgraded JIT Compiler – Tutorial</a></li>
<li><a href="https://realpython.com/courses/testing-mcp-servers-with-a-python-mcp-client/">Testing MCP Servers With a Python MCP Client – Video Course</a></li>
<li><a href="https://realpython.com/how-to-use-github/">How to Use GitHub – Real Python</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://snarky.ca/why-i-wrote-pep-832-virtual-environment-discovery/">Why I Wrote PEP 832: Virtual Environment Discovery</a> – PEP 832 proposes a way to describe where your virtual environment is so that your tools can look in the right place. Although a relatively simple proposal it has caused some contention in the community. This post by Brett, the PEP’s author, describes his reasoning.</li>
<li><a href="https://lwn.net/SubscriberLink/1078367/eaa511915870fdb2/">Free-Threaded Python: Past, Present, and Future</a> – This post summarizes a talk by core developer Thomas Wouters at PyCon US 2026 on Free-threaded Python: the attempt to remove the GIL. It describes why it is being done and what future work looks like.</li>
<li><a href="https://www.youtube.com/watch?v=PZu6LyiZVbM">Free threaded Python past, present and future - YouTube</a></li>
<li><a href="https://tsv.one/articles/uv-in-production-caveats"><code>uv</code> in Production: The Speed Is Real, the Integration Isn’t Free</a> – Oleg’s work moved their tooling from <code>pip</code> to <code>uv</code> and lived with it for ~90 days. They discovered that the speed is real, but that doesn’t mean there aren’t complications.</li>
<li><a href="https://timonweb.com/wagtail/wagtail-as-django-admin-on-steroids/">Wagtail as Django Admin on Steroids</a> – Wagtail can do pretty much everything the Django Admin can do, but includes a much more modern UI and more features. This article shows you how to use Wagtail as an Admin alternative.</li>
<li><a href="https://realpython.com/courses/managing-and-measuring-python-code-quality/">Managing and Measuring Python Code Quality</a> – Master Python code quality tools like linters, formatters, type checkers, and profilers to measure, manage, and improve the code you write.</li>
<li><a href="https://realpython.com/python-code-quality/#managing-trade-offs-between-code-quality-characteristics">Python Code Quality: Best Practices and Tools – Real Python</a></li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/adam2go/purejq">purejq: A Pure-Python Implementation of <code>jq</code></a></li>
<li><a href="https://github.com/y-sunflower/ninejs">ninejs: Bringing ✨interactivity✨ to plotnine</a></li>
<li><a href="https://y-sunflower.github.io/ninejs/">ninejs - Documentation</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://realpython.com/podcasts/rpp/297/">Episode #297: Improving Python Through PEPs and Protocols</a></li>
<li><a href="https://peps.python.org/pep-0766/">PEP 766</a></li>
<li><a href="https://peps.python.org/pep-0008/">PEP 8 – Style Guide for Python Code | peps.python.org</a></li>
<li><a href="https://realpython.com/python-pep8/">How to Write Beautiful Python Code With PEP 8</a></li>
<li><a href="https://www.endorlabs.com/platform/developer?utm_source=Real-python-podcast&utm_medium=video&utm_campaign=auri-for-developers">AURI for Developers - AI-Native AppSec Platform - Endor Labs</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/threading-python/">Threading in Python</a></li>
<li><a href="https://realpython.com/courses/thread-safety-locks-other-techniques/">Thread Safety in Python: Locks and Other Techniques</a></li>
<li><a href="https://realpython.com/courses/testing-mcp-servers-with-a-python-mcp-client/">Testing MCP Servers With a Python MCP Client</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Running Python Locally in a Sandbox
<p>How do you avoid the risk of running a Python application locally that could be malicious, break your code, or leak private data? How can you create a sandboxed local environment using WASM and MicroPython? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>We cover a recent article by previous guest Simon Willison titled “Running Python code in a sandbox with MicroPython and WASM.” Simon has been experimenting for years on how to run Python code in a sandbox to reduce the risk of trying out new software, untrusted libraries, and wild ideas. He’s developed a solution using WASM and MicroPython and is sharing it as an alpha package on PyPI.</p>
<p>We also share other articles and projects from the Python community, including new releases, community announcements, a roundup of recent Real Python tutorials and video courses, a plugin case study using Pluggy, a look at whether you’re expected to run five type-checkers now, wrapping programs using the subprocess module, a project for star charts and maps, and a tool for trend detection in Python.</p>
<p>This episode is sponsored by <a href="https://datadriven.io/?utm_source=realpython&utm_medium=podcast&utm_campaign=realpython_podcast_sponsorship&utm_content=shownotes_leaderboard">DataDriven</a>.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Spotlight:</strong> <a href="https://realpython.com/workshops/codex/">Codex for Python Developers: Hands-On Agentic Coding Course</a></p>
<p>Most Python developers use AI as fancy autocomplete. This 2-day live course teaches you to build entire projects with Codex, an AI agent that works inside your codebase.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:48 – PSF Board Election Dates for 2026</li>
<li>00:03:28 – Python 3.15.0 beta 3 is here!</li>
<li>00:03:58 – PEP 835: Shorthand Syntax for Annotated Type Metadata</li>
<li>00:05:13 – Announcing the Search for a DSF Executive Director</li>
<li>00:05:53 – Django 6.1 beta 1 released</li>
<li>00:06:24 – PyData London 26 Videos Released</li>
<li>00:06:50 – Implementing Interfaces in Python: ABCs and Protocols</li>
<li>00:07:36 – Building Python Skills for the Job Market</li>
<li>00:08:21 – Context Engineering for Python Codebases</li>
<li>00:09:14 – Python for Data Analysis: A Practical Guide</li>
<li>00:09:47 – Using LlamaIndex for RAG in Python</li>
<li>00:10:07 – Django Tasks: Exploring the Built-in Tasks Framework</li>
<li>00:10:59 – Plugins Case Study: Pluggy</li>
<li>00:15:10 – Sponsor: <a href="https://datadriven.io/?utm_source=realpython&utm_medium=podcast&utm_campaign=realpython_podcast_sponsorship&utm_content=shownotes_leaderboard">DataDriven</a></li>
<li>00:15:57 – Pyodide 314.0 Release</li>
<li>00:18:54 – Python in a Sandbox With MicroPython and WASM</li>
<li>00:22:35 – The subprocess Module: Wrapping Programs With Python</li>
<li>00:30:08 – Spotlight: Codex for Python Developers</li>
<li>00:31:51 – Are You Expected to Run 5 Type-Checkers Now?</li>
<li>00:39:41 – starplot: ✨ Star charts and maps in Python</li>
<li>00:42:01 – marimo-tutorials: Collection of Marimo Tutorials</li>
<li>00:42:48 – pytrendy: Trend Detection in Python</li>
<li>00:44:35 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://pyfound.blogspot.com/2026/06/psf-board-election-dates-for-2026.html">PSF Board Election Dates for 2026</a></li>
<li><a href="https://blog.python.org/2026/06/python-3150-beta-3/">Python 3.15.0 beta 3 is here! - Python Insider</a></li>
<li><a href="https://peps.python.org/pep-0835/">PEP 835: Shorthand Syntax for Annotated Type Metadata (Added)</a></li>
<li><a href="https://www.djangoproject.com/weblog/2026/jun/17/announcing-the-search-for-a-dsf-executive-director/">Announcing the Search for a DSF Executive Director</a></li>
<li><a href="https://www.djangoproject.com/weblog/2026/jun/24/django-61-beta-1-released/">Django 6.1 beta 1 released - Django Weblog</a></li>
<li><a href="https://www.youtube.com/playlist?list=PLGVZCDnMOq0rFQykYJg7t441AEpN4SszE">PyData London 26 Videos Released</a></li>
</ul>
<p>Real Python News:</p>
<ul>
<li><a href="https://realpython.com/python-interface/">Implementing Interfaces in Python: ABCs and Protocols</a></li>
<li><a href="https://realpython.com/courses/building-python-skills-for-the-job-market/">Building Python Skills for the Job Market</a></li>
<li><a href="https://realpython.com/python-context-engineering-ai/">Context Engineering for Python Codebases</a></li>
<li><a href="https://realpython.com/python-for-data-analysis/">Python for Data Analysis: A Practical Guide</a></li>
<li><a href="https://realpython.com/courses/using-llamaindex-for-rag-in-python/">Using LlamaIndex for RAG in Python</a></li>
<li><a href="https://realpython.com/django-tasks/">Django Tasks: Exploring the Built-in Tasks Framework</a></li>
</ul>
<p>Topics:</p>
<ul>
<li><a href="https://eli.thegreenplace.net/2026/plugins-case-study-pluggy/">Plugins Case Study: Pluggy</a> – <a href="https://github.com/pytest-dev/pluggy">Pluggy</a> is an open source plugin system used by frameworks such as pytest and tox. This article introduces you to how it works and what you can do with it.</li>
<li><a href="https://blog.pyodide.org/posts/314-release/">Pyodide 314.0 Release</a> – This post announces the Pyodide 314.0 release and describes its features, including a focus on standardization and packaging. You can now build Pyodide wheels and post them to PyPI.</li>
<li><a href="https://simonwillison.net/2026/Jun/6/micropython-in-a-sandbox/">Python in a Sandbox With MicroPython and WASM</a> – Simon’s been in search of the perfect code sandbox. This article is about his latest attempt and covers why he wants a sandbox and what tech he’s used to achieve it.</li>
<li><a href="https://realpython.com/python-subprocess/">The subprocess Module: Wrapping Programs With Python</a> – Python’s <code>subprocess</code> module allows you to run shell commands and manage external processes directly from your Python code. By using <code>subprocess</code>, you can execute shell commands like <code>ls</code> or <code>dir</code>, launch applications, and handle both input and output streams.</li>
<li><a href="https://pyrefly.org/blog/too-many-type-checkers/">Are You Expected to Run 5 Type-Checkers Now?</a> – Library maintainers may feel overwhelmed by the plurality of type checkers that exist. We offer some guidance on how to focus their efforts where they matter most.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/steveberardi/starplot">starplot: ✨ Star charts and maps in Python</a></li>
<li><a href="https://github.com/Haleshot/marimo-tutorials">marimo-tutorials: Collection of Marimo Tutorials</a></li>
<li><a href="https://github.com/RussellSB/pytrendy">pytrendy: Trend Detection in Python</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://realpython.com/podcasts/rpp/226/">Episode #226: PySheets: Spreadsheets in the Browser Using PyScript</a></li>
<li><a href="https://datasette.io/">Datasette: An open source multi-tool for exploring and publishing data</a></li>
<li><a href="https://realpython.com/courses/astrophysics-pandas-matplotlib/">Exploring Astrophysics in Python With pandas and Matplotlib</a></li>
<li><a href="https://realpython.com/courses/astropy-astronomy/">Using Astropy for Astronomy With Python</a></li>
<li><a href="https://realpython.com/courses/investigating-quasar-data-polars-marimo-notebooks/">Investigating Quasar Data With Polars and Interactive marimo Notebooks</a></li>
<li><a href="https://jupyterlite.readthedocs.io/en/stable/">JupyterLite — JupyterLite 0.8.0 documentation</a></li>
<li><a href="https://datadriven.io/?utm_source=realpython&utm_medium=podcast&utm_campaign=realpython_podcast_sponsorship&utm_content=shownotes_leaderboard">DataDriven - Data Engineer Interview Practice Problems</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/astropy-astronomy/">Using Astropy for Astronomy With Python</a></li>
<li><a href="https://realpython.com/courses/using-llamaindex-for-rag-in-python/">Using LlamaIndex for RAG in Python</a></li>
<li><a href="https://realpython.com/courses/building-python-skills-for-the-job-market/">Building Python Skills for the Job Market</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Maintaining Your Python Developer Instincts While Using LLM Tools
<p>Do you feel like your Python skills are atrophying after using LLM coding tools? How do you add the right kind of friction into your coding routine to keep your developer instincts sharp? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>We discuss a recent article by previous guest Bob Belderbos about developers keeping their instincts when AI is writing the code. He stresses the importance of the right kind of friction for maintaining skills and scheduling a deliberate coding practice routine.</p>
<p>We also share other articles and projects from the Python community, including new releases, a roundup of recent Real Python tutorials and video courses, sending emails with Python, libraries to enhance your Python Polars workflows, exploring Django Integrity-Policy, a next-generation HTTP client for Python, and a project to detect lazy imports incompatibilities.</p>
<p>This episode is sponsored by <a href="https://www.endorlabs.com/platform/developer?utm_source=Real-python-podcast&utm_medium=video&utm_campaign=auri-for-developers">AURI by Endor Labs</a></p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/multiple-ai-models-openrouter-api/">Accessing Multiple AI Models With the OpenRouter API</a></p>
<p>Access models from popular AI providers in Python through OpenRouter’s unified API with smart routing, fallbacks, and cost controls.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:53 – Python 3.14.6, 3.13.14, and 3.15.0b2 Released</li>
<li>00:03:20 – Django Security Releases Issued: 6.0.6 and 5.2.15</li>
<li>00:03:35 – PyPy v7.3.23 Released</li>
<li>00:04:25 – Python sleep(): How to Add Time Delays to Your Code</li>
<li>00:04:59 – Structuring Your Python Script</li>
<li>00:05:36 – How to Use GitHub Copilot Code Review in Pull Requests</li>
<li>00:06:13 – Accessing Multiple AI Models With the OpenRouter API</li>
<li>00:07:25 – Cursor vs Windsurf: Which AI Code Editor Is Best for Python?</li>
<li>00:08:28 – Sending Emails With Python</li>
<li>00:16:31 – Sponsor:AURI from Endor Labs</li>
<li>00:17:17 – Announcing Polars 1.41</li>
<li>00:19:43 – Libraries for Your Python Polars Workflows</li>
<li>00:23:42 – Django: Introducing Django-Integrity-Policy</li>
<li>00:28:39 – Video Course Spotlight</li>
<li>00:30:21 – Keep Your Developer Instincts When AI Writes the Code</li>
<li>00:39:58 – Lifeguard: Detect Lazy Imports Incompatibilities</li>
<li>00:42:46 – httpx2: A Next Generation HTTP Client for Python</li>
<li>00:45:34 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://blog.python.org/2026/06/python-3146-31314/">Python 3.14.6 and 3.13.14 Released</a></li>
<li><a href="https://www.python.org/downloads/release/python-3150b2/">Python 3.15.0b2 Released</a></li>
<li><a href="https://www.djangoproject.com/weblog/2026/jun/03/security-releases/">Django Security Releases Issued: 6.0.6 and 5.2.15</a></li>
<li><a href="https://pypy.org/posts/2026/05/pypy-v7322-release.html">PyPy v7.3.23 Released</a></li>
</ul>
<p>Real Python News:</p>
<ul>
<li><a href="https://realpython.com/python-sleep/">Python sleep(): How to Add Time Delays to Your Code - Tutorial</a></li>
<li><a href="https://realpython.com/courses/structuring-your-python-script/">Structuring Your Python Script - Video Course</a></li>
<li><a href="https://realpython.com/github-copilot-code-review/">How to Use GitHub Copilot Code Review in Pull Requests – Tutorial</a></li>
<li><a href="https://realpython.com/courses/multiple-ai-models-openrouter-api/">Accessing Multiple AI Models With the OpenRouter API – Video Course</a></li>
<li><a href="https://realpython.com/cursor-vs-windsurf-python/">Cursor vs Windsurf: Which AI Code Editor Is Best for Python? – Tutorial</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://realpython.com/python-send-email/">Sending Emails With Python</a> – Learn how to send emails with Python using SMTP, attach files, format HTML messages, and personalize bulk emails for your contact list.</li>
<li><a href="https://pola.rs/posts/polars-1-41/">Announcing Polars 1.41</a> – Polars 1.41 is out and this post covers the new features it includes. Learn about faster parquet metadata decoding, nested subplan elimination, and more.</li>
<li><a href="https://opensource.posit.co/blog/2026-06-04_libraries-for-python-polars/">Libraries for Your Python Polars Workflows</a> – Four excellent libraries for your data science workflow with support for Polars DataFrames</li>
<li><a href="https://adamj.eu/tech/2026/05/31/introducing-django-integrity-policy/">Django: Introducing Django-Integrity-Policy</a> – Recently, browsers have added support for the new Integrity-Policy response header (Firefox 145+, Chrome 138+). Adam quickly went to work to build a library that enables your Django project to take advantage of the feature.</li>
<li><a href="https://belderbos.dev/blog/dont-delegate-the-friction/">How to Keep Your Developer Instincts When AI Writes the Code</a> – The promise was less friction. The cost, it turns out, is instinct, a high price to pay. Bob’s answer: add deliberate practice to your routine, and keep the struggle.</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/facebook/Lifeguard">Lifeguard: Detect Lazy Imports Incompatibilities</a></li>
<li><a href="https://github.com/pydantic/httpx2">httpx2: A Next Generation HTTP Client for Python</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://openrouter.ai/">OpenRouter</a></li>
<li><a href="https://realpython.com/podcasts/rpp/214/">Episode #214: Build Captivating Display Tables in Python With Great Tables</a></li>
<li><a href="https://realpython.com/ggplot-python/">Using ggplot in Python: Visualizing Data With plotnine – Tutorial</a></li>
<li><a href="https://belderbos.dev/blog/rust-made-me-a-better-python-developer/">Learning Rust Made Me a Better Python Developer</a></li>
<li><a href="https://httpxyz.org/">HTTPXYZ</a></li>
<li><a href="https://www.endorlabs.com/platform/developer?utm_source=Real-python-podcast&utm_medium=video&utm_campaign=auri-for-developers">AURI for Developers - AI-Native AppSec Platform - Endor Labs</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/graph-data-with-python-and-ggplot/">Graph Your Data With Python and ggplot</a></li>
<li><a href="https://realpython.com/courses/structuring-your-python-script/">Structuring Your Python Script</a></li>
<li><a href="https://realpython.com/courses/multiple-ai-models-openrouter-api/">Accessing Multiple AI Models With the OpenRouter API</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Reducing the Size of Python Docker Containers
<p>How can you easily reduce the size of a Python Docker container? What are the exceptions you should catch in your code? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>We cover a tutorial by Khuyen Tran at CodeCut about shrinking the size of a Python Docker container. The piece explores SlimToolKit, which analyzes a container at runtime, identifies what files are used, and then builds a minimal image with only those dependencies.</p>
<p>We dig into a recent piece by Trey Hunner about Python exceptions. When trying to determine a strategy to handle potential errors, which exceptions should you catch and which should you leave unhandled?</p>
<p>We also share other articles and projects from the Python community, including recent releases, two PEPs that have been deferred to 3.16, a critical vulnerability in an open-source ASGI framework, resolving a lazy import manually, a project to anonymize sensitive PII data, and a tool for loading Django settings from a TOML file.</p>
<p>This episode is sponsored by <a href="https://www.endorlabs.com/platform/developer-tools?utm_source=Real-python-podcast&utm_medium=video&utm_campaign=auri-for-developers">AURI by Endor Labs</a>.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/raising-handling-exceptions/">Raising and Handling Python Exceptions</a></p>
<p>In this course, you’ll learn what an exception is and how it differs from a syntax error. You’ll learn about raising exceptions, making assertions, and catching exceptions to change the control flow of your program using the try, except, else, and finally keywords.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:32 – Django 6.1 Alpha 1 Released</li>
<li>00:03:07 – Nuitka Python Compiler Release 4.1</li>
<li>00:04:00 – PEP 813: The Pretty Print Protocol (Deferred to 3.16)</li>
<li>00:04:28 – PEP 830: Add Timestamps to Exceptions and Tracebacks</li>
<li>00:04:50 – Millions of AI agents imperiled by critical vulnerability in open source package</li>
<li>00:07:27 – What Types of Exceptions Should You Catch?</li>
<li>00:13:28 – Sponsor: AURI from Endor Labs</li>
<li>00:14:18 – PyCon US 2026 Packaging Summit Recap</li>
<li>00:18:39 – Slim Down Python Docker Containers</li>
<li>00:24:17 – Video Course Spotlight</li>
<li>00:25:45 – Resolve a Lazy Import Manually</li>
<li>00:28:04 – presidio: Detect, Redact, & Anonymize Sensitive Data (PII)</li>
<li>00:32:37 – dj-toml-settings: Load Django settings from a TOML file</li>
<li>00:37:14 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://www.djangoproject.com/weblog/2026/may/20/django-61-alpha-1-released/">Django 6.1 Alpha 1 Released</a></li>
<li><a href="https://nuitka.net/posts/nuitka-release-41.html">Nuitka Python Compiler Release 4.1</a></li>
<li><a href="https://peps.python.org/pep-0813/">PEP 813: The Pretty Print Protocol (Deferred to 3.16)</a></li>
<li><a href="https://peps.python.org/pep-0830/">PEP 830: Add Timestamps to Exceptions and Tracebacks (Deferred to 3.16)</a></li>
<li><a href="https://arstechnica.com/information-technology/2026/05/millions-of-ai-agents-imperiled-by-critical-vulnerability-in-open-source-package/">Millions of AI agents imperiled by critical vulnerability in open source package - Ars Technica</a></li>
<li><a href="https://github.com/Kludex/starlette/security/advisories/GHSA-86qp-5c8j-p5mr">Missing Host header validation poisons request.url.path, bypassing path-based security checks · Advisory · Kludex/starlette</a></li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://www.pythonmorsels.com/what-types-of-exceptions-should-you-catch/">What Types of Exceptions Should You Catch?</a> – The trickiest programming bugs are often caused by catching exceptions that you didn’t mean to catch or handling exceptions in ways that obfuscate the actual error that’s occurring. Which exceptions should you catch and which should you leave unhandled?</li>
<li><a href="https://bernat.tech/posts/pycon-us-2026-packaging-summit-recap/">PyCon US 2026 Packaging Summit Recap</a> – Per-talk notes from the PyCon US 2026 Packaging Summit, including: Emma Smith on Wheel 2.0 and Zstandard compression, Mike Fiedler on PyPI abuse vectors, Mahe Iram Khan on ecosystems, lightning talks on PEP 772, mobile wheels, AI accelerator variants, and the roundtable discussions.</li>
<li><a href="https://codecut.ai/shrink-python-container-slimtoolkit/">Slim Down Python Docker Containers</a> – Learn how SlimToolKit can reduce a Python Docker image by analyzing what your app actually uses at runtime. This tutorial walks through slimming a Chainlit LLM chatbot image, shows where container bloat comes from, and explains how to avoid breaking lazily loaded Python frameworks.</li>
<li><a href="https://mathspp.com/blog/til/resolve-a-lazy-import-manually">Resolve a Lazy Import Manually</a> – Learn how to work around the Python 3.15 machinery to resolve an explicit lazy import manually.</li>
<li><a href="https://mathspp.com/blog/til/inspect-a-lazy-import">TIL #141 – Inspect a lazy import - mathspp</a></li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/microsoft/presidio">presidio: Detect, Redact, & Anonymize Sensitive Data (PII)</a></li>
<li><a href="https://github.com/adamghill/dj-toml-settings">dj-toml-settings: Load Django settings from a TOML file</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://realpython.com/courses/using-raise-for-effective-exceptions/">Using raise for Effective Exceptions - Real Python Video Course</a></li>
<li><a href="https://realpython.com/courses/working-builtin-exceptions/">Working With Python’s Built-in Exceptions – Real Python Video Course</a></li>
<li><a href="https://realpython.com/podcasts/rpp/177/">Episode #177: Welcoming PyPI’s Safety & Security Engineer Mike Fiedler</a></li>
<li><a href="https://chainlit.io/">Chainlit - Build AI applications</a></li>
<li><a href="https://www.endorlabs.com/platform/developer-tools?utm_source=Real-python-podcast&utm_medium=video&utm_campaign=auri-for-developers">AURI for Developers - AI-Native AppSec Platform - Endor Labs</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/raising-handling-exceptions/">Raising and Handling Python Exceptions</a></li>
<li><a href="https://realpython.com/courses/advanced-import-techniques/">Advanced Python import Techniques</a></li>
<li><a href="https://realpython.com/courses/working-builtin-exceptions/">Working With Python's Built-in Exceptions</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>