The Real Python Podcast
About The Real Python Podcast
A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community.
The show covers a wide range of topics including Python programming best practices, career tips, and related software development topics. Join us every Friday morning to hear what's new in the world of Python programming and become a more effective Pythonista.
Episodes
Mentoring Developers Beyond the Code With Tim Schilling
What’s it take to be a mentor to developers? Where in an engineer’s career can a mentor make an impact? This week we speak with Tim Schilling, Django Steering Council member and Djangonaut Space administrator, about mentoring Python developers.
Tim shares his open-source background, his involvement in the Django community, and where mentoring shaped his own career. He also walks us through why he shifted the focus of his blog, Better Simple, to begin offering one-on-one mentorship.
We dive into what makes a good mentor, the questions developers ask that go beyond Python syntax, and why humility is essential on both sides of the relationship. Tim talks about how writing and blogging helps to work through ideas and career struggles. He also shares several of the projects and events he’s excited about that are happening in the Django community.
Spotlight: Learn With Mentor AI: A Guided Journey Through Async Python
Experience a new way of learning on Real Python by working through async Python in conversation with Mentor AI, one well-placed question at a time.
Free Kit: Want a mentor at your side while you learn? Get the Learn With Mentor AI Kit with a video course, cheat sheets, and a quiz that help you ask Mentor AI better questions. You only need a free Real Python account.
Topics:
00:00:00 – Introduction
00:02:25 – How did you get involved in open source?
00:05:22 – What is Djangonaut Space?
00:09:30 – Django Commons and filling the void of JazzBand ending
00:11:12 – Where did you start mentoring?
00:13:26 – Mentoring in a workplace
00:16:35 – Starting to mentor as a business
00:18:21 – What skills do you need to be a mentor?
00:23:18 – What skills should a mentee bring?
00:25:53 – What gaps can mentoring help fill?
Free-Threaded Python: Why Python Devs Should Know About the ABI
Why should every Python developer know about the CPython ABI? This week on the show, we speak with Nathan Goldbaum about free-threaded Python and the changes to the Python Application Binary Interface.
Nathan recently joined the CPython core developer team and has been building community support for free-threaded Python. Nathan shares his NumPy background and his work on shipping a new DType in NumPy 2.0. He also discusses his work on PyO3 and leading the effort to support thread-safe Rust extensions for use with the free-threaded build of Python.
This episode is sponsored by PropelAuth.
Spotlight: Converting Documents to Markdown With MarkItDown
Learn how to use MarkItDown to convert Excel files, PDFs, and images into clean Markdown that’s ready for LLMs and AI workflows.
Get Your Code: Click here to download the free sample code that shows you how to work with the experimental free threading and JIT compiler in Python 3.13.
Topics:
00:00:00 – Introduction
00:01:51 – The evolution of Free-Threaded Python
00:03:42 – Changes to the Application Binary Interface
00:05:16 – Improving the garbage collector
00:07:04 – Why should developers know about the ABI?
00:11:31 – What has changed with ABI?
00:19:42 – Sponsor: PropelAuth
00:20:18 – Python 3.13 and the updated PyObject
00:23:15 – EuroPython talk - What Every Python Developer Should Know About the ABI
00:31:13 – How did you get involved with NumPy?
00:35:33 – Video Course Spotlight
00:37:24 – Working on NumPy conference talk
00:42:23 – LLMs, aesthetic taste, and intentional software design
00:43:16 – Working on NumPy 2.0, DTypes, and building the String DType
00:54:43 – The stages of intentional design
00:57:34 – How does it connect to working on the ABI?
00:59:11 – Rust, PyO3, and the Spinning Jenny Project
01:04:03 – What are you excited about in the world of Python?
01:05:23 – What do you want to learn next?
01:06:34 – How can people follow your work online?
Demystifying Python Memory Management & Choosing a Project Layout
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.
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.
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 + operator in all of Python, finding which dependencies block a Django project upgrade, and a Django performance benchmark profiler.
Spotlight: Codex for Python Developers: Hands-On Agentic Coding Course
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.
Get Your Cheat Sheet: Click here to download your free Python project structure cheat sheet and keep the flat vs. src/ decision and the entry-point wiring within reach on your next project.
Topics:
00:00:00 – Introduction
00:01:56 – Python 3.16.0 Alpha 1 Is Now Available
00:02:24 – Django Security Releases Issued: 6.1.2, 6.0.9, and 5.2.18
00:02:46 – Release of Polars 2.0
00:03:32 – PyPy v8.0.
The Future of Python Security: Trends, Challenges, and Solutions
How is the Python ecosystem adapting to the modern landscape of software security and supply chain defense? This week on the show, we sit down with Seth Larson, the Python Software Foundation’s Security Developer in Residence.
Seth shares his background in open source and how he got involved in security engineering. We discuss the Python Security Response Team and how a recent PEP formalized its processes for reporting and triage.
Seth breaks down how large language models are affecting vulnerability discovery and increasing the volume to triage. We also cover the security advantages of trusted publishing on PyPI, how Software Bill of Materials (SBOMs) under PEP 770 help track dependencies, and some advice on improving your CI/CD security.
Course Spotlight: Testing Your Code With Python’s unittest
Learn how to use Python’s unittest framework to write unit tests for your code, including test cases, fixtures, and test suites.
Free Bonus: Python Security Checklist
Get a Python Security Checklist (PDF) and keep secrets, passwords, encryption, HTTPS, input validation, and dependency audits on one printable page:
Send My Python Security Checklist »
Topics:
00:00:00 – Security Note: Python certifi package and PHP updates
00:00:37 – Introduction
00:02:22 – Pikmin fans unite!
00:02:51 – How did you get involved in security research?
00:07:07 – Security Research is unique and the wider community
00:13:35 – The influx of LLMs finding vulnerablities
00:17:18 – The Python Security Response Team and PEP 811
00:25:21 – Video Course Spotlight
0
Python Pitfalls: Common Mistakes and How to Avoid Them
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.
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.
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.
Course Spotlight: How to Use Python: Taking Your First Steps
Take your first steps with Python. Install it, run your first program, and work with variables, data types, loops, functions, and errors.
Live Course Spotlight: Python for Beginners: Code With Confidence
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.
Free Kit: Get the Python Beginner Starter Kit with a cheat sheet, a sample book chapter, a course, and a quiz. You only need a free Real Python account.
Topics:
00:00:00 – Introduction
00:02:05 – After a delay - Python 3.15.0 (final) is here!
00:02:41 – Python 3.10.22, 3.11.17, 3.12.15, 3.13.16 and 3.14.8 are now available!
00:03:30 – PEP 823 – None-aware access operators
00:04:40 – PEP 845: Leading-Dot Value Patterns
00:05:04 – PEP 846: Docstrings for Type Aliases
00:05:21 – PEP 848: Generational Incremental Garbage Collection
00:06:12 – 2026 PSF Board Election Results
00:06:31 – 2026 Python Packaging Council Election Results!
Codemoo: Demonstrating How Coding Agents Work
How do you assemble the core pieces of a coding agent? How are developers defining projects through conversation and introspection? This week on the show, Geir Arne Hjelle returns to talk about his recent project to demonstrate how coding agents work under the hood.
Geir Arne was my first guest on this program and has returned often over the years. He’s been exploring how coding agents work and has built a demonstration tool to explain them.
We also discuss how he is using LLM tools in his work. We talk about moving beyond Spec-Driven Development to using tools that help you build architecture documents through thorough questioning sessions.
Course Spotlight: Modern Python Linting With Ruff
Ruff is a blazing-fast, modern Python linter with a simple interface that can replace Pylint, isort, and Black—and it’s rapidly becoming popular.
Topics:
00:00:00 – Introduction
00:01:52 – Codemoo - Demonstrating how coding agents work under the hood
00:06:39 – Exploring Spec-Driven Development
00:09:38 – Breaking into the levels of a harness
00:17:08 – Tool calling
00:24:20 – Being a newbie again
00:29:00 – Designing the progression
00:35:29 – Video Course Spotlight
00:37:01 – What was difficult about the process?
00:41:09 – What tools are you using currently?
00:44:10 – Moving from OpenSpec toward grill-me
00:50:43 – Deciding on which LLM
00:53:49 – garuff: Opinionated Python linter rules for coding agents
00:58:00 – Offsetting atrophy with code challenges
01:01:56 – What are you excited about in the world of Python?
01:04:01 – What do you want to learn next?
01:05:55 – How can people follow your work online?
Python 3.15: Exploring the New Features
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.
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.
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.
Course Spotlight: What’s New in Python 3.15
Explore the new features in Python 3.15, including lazy imports, frozendict, sentinel values, a sampling profiler, and a faster JIT.
Topics:
00:00:00 – Introduction
00:00:02 – * NOTE: Python 3.15 release delayed!
00:03:35 – Real Python 3.15 Preview Articles and Video Course
00:04:40 – Sentinel Values
00:08:55 – Lazy Imports
00:14:48 – Unpacking in Comprehensions
00:17:12 – Mathematical functions
00:20:07 – Sampling Profiler
00:27:43 – Video Course Spotlight
00:29:18 – frozendict
00:33:12 – The speed round of features
00:36:04 – Continued work on free-threaded Python and upgrading the JIT
00:39:34 – Upgrading to 3.15
00:44:35 – Thanks and goodbye
Show Links:
* Python 3.15: following tradition, let’s have a surprise rc3! - Core Development - Discussions on Python.org
Python 3.15: Cool New Features for You to Try – Real Python
Python 3.15 Preview: Sentinel Values – Real Python
Python 3.15 Preview: Lazy Imports – Real Python
Unpacking in Comprehensions -What’s new in Python 3.15 — Python 3.
Navigating AI in Open Source: Insights From Wagtail
How should you manage AI contributions to an open-source project? How do you measure the impact of using AI tools for development, and what generative features do end users want from a content management system? This week on the show, we speak with Thibaud Colas and Meagen Voss from Wagtail about the complex considerations software organizations are currently facing.
Meagen is the Wagtail community manager, and Thibaud is a member of the core team. We discuss the impact of AI on a popular open-source project. We reference multiple articles they’ve written about managing these challenges.
We dig into wrangling AI-assisted contributions to the project. They share how they research options for open-weight AI models and inference providers. We also discuss building AI features into the Wagtail CMS. Finally, we touch on the recent release of Wagtail 8.0.
Course Spotlight: Using the Claude API in Python
Learn how to use the Claude API in Python to send prompts, control responses with system instructions, and get structured output.
Topics:
00:00:00 – Introduction
00:01:49 – What is Wagtail?
00:08:35 – Flood of AI submissions to open-source projects
00:11:38 – Guidance for AI-led contributions
00:20:43 – Security submissions
00:21:56 – Ethical decisions about internal use of AI
00:26:31 – Resurgence of web sites
00:27:41 – Measuring benefits and performance
00:32:49 – Models understanding your framework
00:38:05 – Video Course Spotlight
00:39:42 – Adding AI features to Wagtail for creators
00:48:47 – Balancing the use of AI internally and the cost of inference
00:55:29 – Advice for other open-source projects
01:00:00 – Wagtail 8.0
01:02:10 – What are you excited about in the world of Python?
01:04:10 – What do you want to learn next?
01:05:56 – How can people follow your work online?
Django Developers Survey Results & Reproducible Python Builds
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.
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.
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.
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 if-else code to match statements.
This episode is sponsored by Six Feet Up.
Video Course Spotlight: How to Get Started With Ollama
Learn how to install Ollama, pull local models, and connect them to your Python code using the chat and text generation interfaces.
Topics:
00:00:00 – Introduction
00:02:46 – Python 3.15.0 candidate 2 is here!
00:03:10 – Django 6.1.1 release notes
00:03:20 – Wagtail 8.
Performance Engineering: Profiling and Making Apps Fast by Default
How do you plan for the performance of your Python applications? What does a performance budget entail, and where should you spend your resources? This week on the show, we speak with Den Odell about his new book “Fast by Default: Practical Performance Engineering.”
Den has 25 years of experience in building web systems for companies with hundreds of millions of users. Working on public-facing tools has honed his skills in understanding where performance is vital and in guiding decisions based on data from actual users.
Den shares details of his performance framework that works across any platform or stack. We discuss the need for budgeting performance during the planning phase, measuring performance through consistent profiling, and keeping systems fast even as your codebase and user base grow.
Course Spotlight: Profiling Performance in Python
Learn to profile Python programs with built-in and popular third-party tools, and turn performance insights into faster code.
Topics:
00:00:00 – Introduction
00:01:39 – Modern systems run across multiple languages
00:03:52 – What lead you toward performance engineering?
00:12:54 – Frameworks and balancing performance against developer experience
00:17:45 – Measuring performance and profiling
00:24:28 – What is Fast by Default?
00:36:34 – Video Course Spotlight
00:38:16 – Breaking into the methodology
00:42:10 – Performance budget
00:48:27 – End user pain points
00:51:21 – Microservices and monoliths
00:54:01 – Performance questionnaire
01:00:31 – What is easier about performance planning upfront?
01:01:50 – Discoveries during the writing process
01:07:01 – Do LLMs write performant code?
01:12:37 – What are you excited about in the world of Python?
01:13:41 – What do you want to learn next?
01:15:02 – How can people follow your work online?
Exploring Complex Systems & Maintainable Data Science Pipelines
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.
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.
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.
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.
Course Spotlight: Sending Emails Using Python
Learn how to send emails with Python using SMTP and smtplib, attach files, format HTML messages, and personalize bulk emails.
Topics:
00:00:00 – Introduction
00:02:24 – Python 3.12.14, 3.11.16 and 3.10.
Navigating Silent Failures in AI: Strategies for Effective Oversight
Why do AI systems silently fail? How can you set up a system that produces results while also reviewing and validating the work? This week on the show, Calvin Hendryx-Parker returns to discuss his recent talk “Orchestrate Agentic AI: Context, Checklists, and No-Miss Reviews.”
Calvin describes how silent failures can occur when handing a large document to an LLM for parsing. He describes it as the tragedy of context, where the LLM is confident, but you have no idea what it didn’t read. We discuss issues with file formats, dropped attachments, and silent truncation.
Calvin shares the example project from his talk, which includes Markdown files for the agents, hooks, skills, and scripts. He also discusses a variety of coding agents, skill frameworks, and CLI tools.
Course Spotlight: Coding With OpenCode: AI-Assisted Python
Learn how to use OpenCode for AI-assisted Python coding, using a free Gemini API key to analyze and refactor code right in your terminal.
Topics:
00:00:00 – Introduction
00:02:19 – Co-hosting Python Bytes
00:03:43 – Why AI Fails Silently talk
00:11:07 – Digging into silent failures and an audit trail
00:18:44 – How would you define hooks?
00:20:48 – Document extraction, embeddings, and Cowork
00:30:38 – Stripping the noise from file formats
00:34:43 – Things that are now baked into models
00:45:53 – Video Course Spotlight
00:47:23 – Leveraging agents to pick models
00:51:44 – GitHub repo for the project
00:54:57 – The current market around tokens
01:00:12 – What are you excited about in the world of Python?
01:03:02 – What do you want to learn next?
Improving NumPy Performance on Free-Threaded Python
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.
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.
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.
Spotlight: Modern Object-Oriented Python Book
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.
Topics:
00:00:00 – Introduction
00:02:26 – Python 3.15.0 candidate 1 is here!
00:02:47 – Python 3.14.7 and 3.13.15 are now available!
00:03:00 – Django 6.1 released
00:03:39 – Planned Updates to the PyPI User Interface
00:04:13 – PyPI Releases Now Reject New Files After 14 Days
00:05:07 – PEP 837 – Extensible JSON serialization
00:06:20 – PEP 842: Module Exports
00:07:51 – Introducing django-crawl
00:12:02 – SIMD in Pure Python
00:18:29 – Managing Imports With Python’s __all__
00:29:34 – Spotlight: Modern Object-Oriented Python Book
00:30:53 – Scaling NumPy on Free-Threaded Python
00:37:53 – cnsplots: Python Data Visualization for Complex Datasets
00:42:19 – django-orm-lens: Django Schema Review
00:45:14 – Thanks and goodbye
News:
Python 3.15.0 candidate 1 is here! - Python Insider
Python 3.14.7 and 3.13.15 are now available! - Python Insider
Django 6.
Programmatically Developing LLM Prompts With DSPy
How can you move from manually writing prompts for an LLM application toward defining them programmatically? This week on the show, Brett Kennedy returns to discuss his new book “Building LLM Applications with DSPy.”
With large language models becoming embedded in production software, manual prompt engineering becomes brittle, time-consuming, and difficult to maintain. Brett shares how DSPy replaces manually writing and adjusting prompts with structured prompt programming.
We dig into how DSPy uses declarative signatures to define inputs and outputs. We also discuss how developers programmatically compile, tune, and optimize prompts for specific LLM-based tasks within an application.
Course Spotlight: Using LlamaIndex for RAG in Python
Learn how to set up LlamaIndex, load your data, build and persist an index, and run queries to get grounded answers with RAG in Python.
Topics:
00:00:00 – Introduction
00:01:50 – Working on a new book
00:02:53 – Writing with a partner
00:04:16 – Building LLM Applications with DSPy
00:05:22 – What is DSPy?
00:06:58 – Working with signatures and typing
00:09:53 – Prompt engineering failing to work for a new model
00:13:43 – What is an optimizer?
00:19:04 – Moving toward a new level of abstraction in prompting
00:23:19 – Prompts for the LLM within a consumer facing application
00:28:26 – Video Course Spotlight
00:30:21 – Example of using with RAG
00:38:45 – Example of a business plan tool
00:43:06 – The Bitter Lesson
00:46:03 – Structure of the book
00:49:55 – Advice on starting with DSPy
00:54:15 – Example of a transformed prompt
00:59:37 – What are you excited about in the world of Python?
01:01:47 – What do you want to learn next?
01:04:11 – What’s the best way to follow your work online?
Should You Understand Your Entire Python Codebase?
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.
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.
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.
We also share other articles and projects from the Python community, including recent releases, querying with f-expressions in Django, replacing if-else chains, a Rust-based replacement for Python’s json module, and a couple of Python cheat sheet resources.
This episode is sponsored by HydraDB.
Course Spotlight: Exploring Python’s Built-in Functions
Learn Python’s built-in functions for math, data types, iterables, and I/O, and when to use each to write more Pythonic code.
Topics:
00:00:00 – Introduction
00:02:29 – Christopher’s Python News Song
00:03:18 – Python 3.15.0 Beta 4 Released
00:03:39 – PEP 838: Adding python-version to pyvenv.
Configuring a Versatile LLM Harness & Scraping the Web With Scrapy
Which is more important, the model or the “harness” around an LLM? What are ways to assemble an efficient agentic developer workflow? This week on the show, Ayan Pahwa joins us to discuss harnessing, web scraping, and self-hosting Python applications.
Ayan is a developer advocate at Zyte and an experienced project builder. We discuss a recent article he wrote about creating an extension for the web scraping tool Scrapy. He also digs into his self-hosting setup for Python applications and tools.
Our discussion extends to the complexities of developing effective harnesses. Ayan shares his setup and how he navigated shifting from prompt engineering to context and loop engineering.
This episode is sponsored by HydraDB.
Course Spotlight: Introduction to Web Scraping With Python
In this video course, you’ll learn all about web scraping in Python. You’ll see how to parse data from websites and interact with HTML forms using tools such as Beautiful Soup and MechanicalSoup.
Topics:
00:00:00 – Introduction
00:02:01 – Scrapy and building an extension
00:08:46 – Zyte and the web scraping API
00:11:19 – Sponsor: HydraDB
00:12:22 – noalgotube project
00:15:49 – Homelab & self hosting projects
00:22:19 – What goes into a harness?
00:32:33 – Where did you start exploring LLM tools?
00:36:13 – Local models & edge computing
00:39:31 – ExtractPod and discussing Apple’s AI
00:43:35 – Video Course Spotlight
00:44:54 – Managing token use and tools
00:52:37 – What are you excited about in the world of Python?
00:55:10 – What do you want to learn next?
00:56:38 – What is the best way to follow your work online?
Free-Threaded Python's History & uv in Production
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.
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.
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.
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 uv in Production, employing Wagtail as Django admin on steroids, managing and measuring Python code quality, a pure-Python implementation of jq, and a project to bring interactivity to plotnine.
This episode is sponsored by AURI by Endor Labs
Course Spotlight: Thread Safety in Python: Locks and Other Techniques
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.
Topics:
00:00:00 – Introduction
00:03:08 – PEP 836: JIT Go Brrr: The Path to a Supported JIT Compiler for CPython
00:04:34 – PyCon US 2026 Videos Are Up
00:04:53 – Thinking About Running for the PSF Board? Let’s Talk!
00:05:30 – How to Get Started With the GitHub Copilot CLI
00:06:27 – Python 3.
Constructing and Judging Modern Agentic Workflows
How can you improve your LLM agent systems through specification enrichment? What are the advantages of having an LLM act as a judge within an agent system? This week on the show, Senior IEEE Member and Quality Engineer Suneet Malhotra joins us to discuss building and evaluating agentic architecture.
Suneet Malhotra is an independent practitioner-researcher with 18 years of experience in Quality Engineering (QE) and test automation for consumer-scale platforms. He discusses building specification-enrichment loops, monitoring performance, and using Cohen’s kappa to measure agreement between LLM judgments.
Suneet is currently publishing multiple papers that are under peer review on these topics. He also provides links to his work and GitHub projects if you want to experiment with these concepts and methods yourself.
Quick Survey: Get more out of the podcast show notes
Video Course Spotlight: Testing MCP Servers With a Python MCP Client
Learn how to build a Python MCP client that tests MCP servers from your terminal. List their tools, prompts, and resources, then call each one.
Topics:
00:00:00 – Introduction
00:00:56 – Survey: RP Podcast show notes
00:02:11 – How did you get into testing?
00:05:04 – Has working for large public-facing corporations changed how you approach testing?
00:07:06 – Writing a paper on LLM-as-Judge
00:09:22 – Looking across the Software Development Lifecycle
00:14:46 – Agentic AI: theater vs methodology
00:17:23 – Specification enrichment
00:27:52 – Video Course Spotlight
00:29:18 – Saving the specifications
00:31:27 – Using the LLM as a judge & Cohen’s kappa
00:39:31 – How can people try out the project?
00:43:35 – What are some of the failure modes you’ve seen?
00:50:26 – What’s an inexpensive way to try these ideas out?
00:54:04 – What are you excited about in the world of Python?
00:56:14 – What do you want to learn next?
00:57:14 – How can people follow your work online?
Running Python Locally in a Sandbox
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.
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.
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.
This episode is sponsored by DataDriven.
Spotlight: Codex for Python Developers: Hands-On Agentic Coding Course
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.
Topics:
00:00:00 – Introduction
00:02:48 – PSF Board Election Dates for 2026
00:03:28 – Python 3.15.0 beta 3 is here!
00:03:58 – PEP 835: Shorthand Syntax for Annotated Type Metadata
00:05:13 – Announcing the Search for a DSF Executive Director
00:05:53 – Django 6.
Maintaining Your Python Developer Instincts While Using LLM Tools
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.
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.
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.
This episode is sponsored by AURI by Endor Labs
Course Spotlight: Accessing Multiple AI Models With the OpenRouter API
Access models from popular AI providers in Python through OpenRouter’s unified API with smart routing, fallbacks, and cost controls.
Topics:
00:00:00 – Introduction
00:02:53 – Python 3.14.6, 3.13.14, and 3.15.0b2 Released
00:03:20 – Django Security Releases Issued: 6.0.6 and 5.2.15
00:03:35 – PyPy v7.3.23 Released
00:04:25 – Python sleep(): How to Add Time Delays to Your Code
00:04:59 – Structuring Your Python Script
00:05:36 – How to Use GitHub Copilot Code Review in Pull Requests
00:06:13 – Accessing Multiple AI Models With the OpenRouter API
00:07:25 – Cursor vs Windsurf: Which AI Code Editor Is Best for Python?
00:08:28 – Sending Emails With Python
00:16:31 – Sponsor:AURI from Endor Labs
00:17:17 – Announcing Polars 1.
EuroPython 2026: Celebrating 25 Years
What’s happening at EuroPython 2026? The conference celebrates its 25th anniversary this year in Kraków, Poland. This week on the show, organizers Mia Bajić and Daria Linhart Grudzien join me to discuss this year’s conference.
Mia serves as the Vice Chair of the EuroPython Society, and Daria leads the EuroPython communications team. We dig into the details of the conference, including the wide variety of tracks, the reasoning for selecting the location, and the additional activities surrounding the event.
We talk about volunteering, organizing, and continuing support for conferences. Mia and Daria also share the talks they’re excited to check out and how they use Python currently.
Course Spotlight: Building Command Line Interfaces With argparse
In this step-by-step Python video course, you’ll learn how to take your command line Python scripts to the next level by adding a convenient command line interface that you can write with argparse.
Topics:
00:00:00 – Introduction
00:02:27 – EuroPython 2026 details
00:05:02 – Daria and Mia’s roles with the conference
00:09:08 – Practices to continue growing a conference
00:13:16 – What makes EuroPython different?
00:18:40 – Video Course Spotlight
00:20:17 – Wide variety of tracks, talks, and topics
00:28:54 – How are you using Python currently?
00:32:38 – What are you excited about in the world of Python?
00:35:12 – What do you want to learn next?
00:37:30 – How can people follow the work you do online?
00:39:06 – Thanks and goodbye
Show Links:
EuroPython 2026 - July 13-19, 2026 - Kraków, Poland
🎂 25th Anniversary of EuroPython: Social Media Challenge 🎂
Schedule for 2026
ICE Kraków Congress Centre
EuroPython: Overview - LinkedIn
EuroPython Conference - YouTube
EuroPython - Fosstodon
EuroPython Conference (@europython) - Instagram
EuroPython (@europython) - TikTok
EuroPython 2026, Kraków (@europython.eu) - Bluesky
EuroPython (@europython) - X
Mia Links:
<a
Reducing the Size of Python Docker Containers
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.
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.
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?
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.
This episode is sponsored by AURI by Endor Labs.
Course Spotlight: Raising and Handling Python Exceptions
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.
Topics:
00:00:00 – Introduction
00:02:32 – Django 6.1 Alpha 1 Released
00:03:07 – Nuitka Python Compiler Release 4.1
00:04:00 – PEP 813: The Pretty Print Protocol (Deferred to 3.16)
00:04:28 – PEP 830: Add Timestamps to Exceptions and Tracebacks
00:04:50 – Millions of AI agents imperiled by critical vulnerability in open source package
00:07:27 – What Types of Exceptions Should You Catch?
Improving Python Through PEPs and Protocols
Have you ever been confused by the naming of modules you’re importing from a package? Is there a standard way to organize and name your Python virtual environments? This week on the show, Brett Cannon returns to discuss the Python Enhancement Proposals (PEPs) he’s been working on recently.
We start with PEP 794, which extends the metadata fields for Python packages to specify the import names a project provides. The metadata will help developers identify the correct project to install when they know the import name or the importable module names a project provides once installed.
We dive back into WebAssembly to discuss PEP 816, which specifies the WASI support in CPython releases. We also wade into the controversy around PEP 832, which proposes standards around naming and the discovery of virtual environments.
Brett shares his motivation for being a prolific author and supporter of PEPs. We discuss his promotion of standards and protocols to simplify the Python ecosystem for current and future developers.
Course Spotlight: Tapping Into the Zen of Python
Explore the Zen of Python and its 19 guiding principles for writing readable, practical code. Learn its history, jokes, and meaning.
Topics:
00:00:00 – Introduction
00:02:01 – Prolific PEP creation
00:03:37 – Improving the future of Python through standards
00:09:30 – PEP 794 - Import Name Metadata
00:30:12 – PEP 816 - WASI (WebAssembly System Interface) Support
00:40:55 – Why the interest in WASI?
00:45:23 – Video Course Spotlight
00:47:07 – PEP 832 - Virtual Environment Discovery
01:10:02 – Type Server Protocol
01:17:41 – How can people follow your work online?
01:19:12 – Thanks and goodbye
Show Links:
Tall, Snarky Canadian
PEP 794 – Import Name Metadata
Towards fixing Python project names and import modules - Goran et al.
Managing Polars Schema Issues & Profiling GitHub Users
How can you avoid schema problems in your Polars data pipeline when adding new columns? How can you quickly examine a GitHub user’s profile to decide how much to invest in their contributions? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.
Christopher shares a recent article about handling schema issues in Python Polars. The piece covers ways that a schema change can break your data pipeline. It provides strategies to avoid and resolve issues.
We cover a recent project from previous guest Eric Matthes to investigate GitHub profiles of a potential contributor. With the rise of AI-slop pull requests, the tool can provide valuable background on the user.
We also share other articles and projects from the Python community, including recent releases, exploring four different “get” special methods, what’s new in Pip 26.1, inverse Sapir-Whorf and programming languages, and a Python scripting framework for CAD.
This episode is sponsored by Six Feet Up.
Course Spotlight: Working With Python Polars
Welcome to the world of Polars, a powerful DataFrame library for Python. In this video course, you’ll get a hands-on introduction to Polars’ core features and see why this library is catching so much buzz.
Topics:
00:00:00 – Introduction
00:02:51 – Python 3.14.5 is out!
00:03:16 – Python 3.15.0 beta 1 is here!
00:03:34 – PyPy v7.3.22 Released
00:03:45 – Django Security Releases: 6.0.5 and 5.2.14
00:04:04 – 2026 Django Developers Survey
00:04:24 – PEP 797: Shared Object Proxies (Deferred to 3.16)
00:04:40 – PEP 828: Supporting ‘Yield From’ in Asynchronous Generators
00:05:59 – Do You Get It Now?
00:11:54 – Sponsor: Six Feet Up
00:12:47 – Handling Schema Issues in Polars
00:17:10 – What’s New in Pip 26.
Agentic Architecture: Why Files Aren't Always Enough
What are the limitations of using a file-based agent workflow? Why do massive context windows tend to collapse? This week on the show, Mikiko Bazeley from MongoDB joins us to discuss agentic architecture and context engineering.
Mikiko is an applied AI engineer. She helps developers and organizations build AI and ML applications using MongoDB. We dig into the debate of files versus a database. What are some of the limitations of building an agent with just a folder of files?
We explore the surprising limitations of massive context windows and strategies for fixing them. Mikiko also shares advice and resources to help you get up to speed on building your own agent skills. Our conversation touches on multiple topics in the current development landscape.
This episode is sponsored by SerpApi.
Video Course Spotlight: Building Type-Safe LLM Agents With Pydantic AI
Build type-safe LLM agents in Python with Pydantic AI using structured outputs, function calling, and dependency injection.
Topics:
00:00:00 – Introduction
00:02:31 – Catching up with MongoDB
00:07:02 – Are the files all you need?
00:15:14 – What is a workflow agent?
00:24:43 – Sponsor: SerpApi
00:25:45 – Model vs harness
00:29:57 – Context rot and tool loadouts
00:41:07 – Sharing state and coordination of agents
00:47:27 – Video Course Spotlight
00:49:16 – What do dataflows look like
01:00:38 – The human-in-the-loop & coding agents
01:10:30 – Resources to explore
01:17:49 – What are you excited about in the world of Python?
01:18:38 – What do you want to learn next?
Declarative Charts in Python & Discerning Iterators vs Iterables
What if you could build charts in Python by describing what your data means, instead of scripting every visual detail? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.
We cover a recent Real Python article about the data visualization library Altair. Most tools require you to write detailed boilerplate code to set up the axis and figure. Altair follows a declarative approach where you specify which columns go to which axis, the type of chart or plot, and what should be interactive.
We also share other articles and projects from the Python community, including recent releases, clarifying the differences between iterators and iterables, decoupling your business logic from the Django ORM, comparing an LLM-based tool for web scraping against Playwright, a neural network emulator for guitar amplifiers, and a CLI tool to generate ASCII art of the current moon phase.
This episode is sponsored by Build Your Own Coding Agent.
Video Course Spotlight: Use Codex CLI to Enhance Your Python Projects
Learn how to use Codex CLI to add features to Python projects directly from your terminal, without needing a browser or IDE plugins.
Topics:
00:00:00 – Introduction
00:02:38 – Read the Docs Now Supports uv Natively
00:03:09 – Reverting the Incremental GC in Python 3.14 and 3.15
00:04:51 – Altair: Declarative Charts With Python
00:12:23 – Sponsor: Build Your Own Coding Agent
00:13:17 – Decoupling Your Business Logic From the Django ORM
00:19:51 – browser-use vs. Playwright: Which to Pick for Web Scraping?
Agentic Data Science Pair Programming With marimo pair
How do you add agent skills to your data science workflow? How can a coding agent assist with data wrangling and research? This week on the show, Trevor Manz from marimo joins us to discuss marimo pair.
Trevor is a founding engineer at marimo, where he’s been working on integrating LLM tools with marimo. We discuss the balancing act of building a skill and determining how to give an agent access to all the variables in a notebook. He shares how they built a specialized reactive REPL that eliminates hidden state and allows the agent to continue constructing a reproducible Python program.
We dig into installing and getting started with marimo pair. Trevor also covers several of the tasks an agent can tackle in a data science workflow.
Video Course Spotlight: Getting Started With marimo Notebooks
Discover how marimo notebook simplifies coding with reactive updates, UI elements, and sandboxing for safe, sharable notebooks.
Topics:
00:00:00 – Introduction
00:02:26 – Trevor’s role at marimo
00:03:08 – Current AI tools in marimo
00:06:26 – Describing marimo notebooks
00:10:11 – What is marimo pair?
00:18:49 – Building an agent skill
00:27:34 – Setup & installation
00:31:16 – Video Course Spotlight
00:32:42 – Examples of EDA and data wrangling
00:45:46 – Experimenting inside of a notebook
00:50:40 – Managing context
00:53:25 – Accessing additional libraries
00:57:16 – Recent tools and updates from the marimo community
00:59:31 – What are you excited about in the world of Python?
01:01:10 – What do you want to learn next?
01:02:26 – How can people follow your work online?
Becoming a Better Python Developer Through Learning Rust
How can learning Rust help make you a better Python Developer? How do techniques required by a compiled language translate to improving your Python code? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.
We discuss a recent article by Bob Belderbos titled “Learning Rust Made Me a Better Python Developer.” Bob has been on a journey learning to program in Rust, which has made him rethink how he’s been writing Python. The compiler forced him to confront things he’d been ignoring.
We also share other articles and projects from the Python community, including recent releases, a boatload of PEPs, NumPy as a synth engine, firing and forgetting with Python’s asyncio, managing state with signals in Python, a documentation site generator for Python packages, and a tool to explain your Python environment.
This episode is sponsored by AgentField.
Video Course Spotlight: Using Loguru to Simplify Python Logging
Learn how to use Loguru for simpler Python logging, from zero-config setup and custom formats to file rotation, retention, and adding context.
Topics:
00:00:00 – Introduction
00:02:23 – Python 3.15.0a8, 3.14.4 and 3.13.13 Released
00:03:01 – Django Security Releases: 6.0.4, 5.2.13, and 4.2.30
00:03:38 – DjangoCon Europe 2027 Call for Organizers
00:04:04 – PEP 803: "abi3t": Stable ABI for Free-Threaded Builds
00:04:44 – PEP 829: Structured Startup Configuration via .site.
Reassessing the LLM Landscape & Summoning Ghosts
What are the current techniques being employed to improve the performance of LLM-based systems? How is the industry shifting from post-training towards context engineering and multi-agent orchestration? This week on the show, Jodie Burchell, data scientist and Python Advocacy Team Lead at JetBrains, returns to discuss the current AI coding landscape.
In our last conversation, Jodie covered how LLMs were approaching the limits of scaling laws. This time, we recap last year’s big focus on reasoning models and a post-training method called “reinforcement learning from verifiable rewards” (RLVR). We also cover test-time compute, where models spend more time reasoning through steps and considering multiple approaches to solve a problem.
We touch on Agent Context Protocol (ACP), agent orchestration layers, and context engineering. We also share some concerns about the hype cycle, maintaining all that code being generated, and running local models.
Course Spotlight: Vector Databases and Embeddings With ChromaDB
Learn how to use ChromaDB, an open-source vector database, to store embeddings and give context to large language models in Python.
Advice on Managing Projects & Making Python Classes Friendly
What goes into managing a major project? What techniques can you employ for a project that’s in crisis? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.
We discuss an article by Ben Kuhn titled, “How I’ve Run Major Projects.” We dig into the skills required for project management, and provide advice for when projects fall into crisis. We cover how the field’s terminology has been updated. However, the time investment, sober communication, and planning still remain at the core of successful projects.
We also share other articles and projects from the Python community, including recent releases and announcements, exploring an IDE for data science development, using Python set comprehensions, making friendly classes, using atexit for cleanup, a high-performance caching library for Python written in Rust, and a curated list of awesome marimo things.
This episode is sponsored by PropelAuth.
Video Course Spotlight: Using Data Classes in Python
When using data classes, you don’t have to write boilerplate code to get proper initialization, representation, and comparisons for your objects.
Topics:
00:00:00 – Introduction
00:02:15 – Starlette 1.0 Released
00:03:08 – PyOhio 2026 Call for Proposals Now Open!
00:03:42 – Spyder: Your IDE for Data Science Development in Python
00:11:04 – Python Set Comprehensions: How and When to Use Them
00:14:40 – Sponsor: PropelAuth
00:15:17 – Making Friendly Classes
00:23:51 – How to Use atexit for Cleanup
00:25:49 – Video Course Spotlight
00:27:14 – How I’ve run major projects
00:47:47 – awesome-marimo: Curated List of Awesome Marimo Things
00:51:37 – moka-py: A high performance caching library for Python written in Rust
00:53:24 – Thanks and goodbye
News:
Starlette 1.0 Released
PyOhio 2026 Call for Proposals Now Open!