English-language podcasts

The Real Python Podcast

Optimizing Python Performance & Building a Django Static Site

48 min

Listen through the publisher, then discuss the episode here or arrange an in-person Roundtable. Your city determines where to meet.

Roundtables are designed for groups of four, with a shared subject and room for everyone to speak. Come for discussion, with no dating expectation.

What goes into moving from profiling the performance of a Python program to optimizing it? What are common techniques you should consider for speeding up your code, and which ones should you avoid? 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 practical guide about optimizing Python performance. The piece goes beyond the first step of finding the slow areas of code through profiling and into specific optimization techniques. We discuss choosing better algorithms and data structures, caching results, and using tools from the standard library. We also share other articles and projects from the Python community, including recent releases, a pair of Python Enhancement Proposals, using Django as a simple static site builder, how a Python type checker decides a variable is unused, pull request limits for the CPython repo, a Postman alternative built in Python using Textual, and a world clock for the terminal. Course Spotlight: Dictionaries and Arrays: Selecting the Ideal Data Structure (https://realpython.com/courses/dicts-arrays-ideal-data-structure/) In this course, you’ll learn about two of Python’s data structures: dictionaries and arrays. You’ll look at multiple types and classes for both of these and learn which implementations are best for your specific use cases. Live Course Spotlight: Want to go deeper on the data structures and Pythonic techniques behind faster code? Real Python’s Intermediate Python Deep Dive (https://realpython.com/workshops/intermediate-deep-dive/) live course takes you from the object model through generators, decorators, and specialized data structures with expert guidance. Join the waitlist to hear about the next dates. Topics: 00:00:00 – Introduction 00:02:04 – Python 3.15.2, 3.14.10, 3.13.18, 3.12.16 and 3.11.18 Released 00:02:34 – Python 3.16.0 alpha 2 is now available 00:03:08 – Django Security Releases Issued: 6.1.3, 6.0.10, and 5.2.19 00:03:25 – Advice on managing security releases and updates 00:09:06 – PEP 850: Wheel Variants: Providers 00:09:49 – PEP 836: JIT Go Brrr: Python’s Experimental JIT to Be Removed 00:11:17 – Announcing New Security Developer at the PSF 00:11:55 – In Memoriam: Tim Peters 1952–2026 00:12:57 – Python Performance Optimization: A Practical Guide 00:25:54 – Video Course Spotlight 00:27:24 – Django as a Simple Static Site Builder 00:33:08 – How a Python Type Checker Decides a Variable Is Unused 00:38:47 – Pull Request Limits for CPython Repo 00:41:44 – Ghostman: Postman Alternative Built in Python With Textual 00:44:04 – terrahour: World Clock With a Day/Night Map for the Terminal 00:46:18 – Thanks and goodbye News: Python 3.15.2, 3.14.10, 3.13.18, 3.12.16 and 3.11.18 Released (https://blog.python.org/2026/10/python-3152-31410-31318-31216-31118/) Python 3.16.0 alpha 2 is now available (https://blog.python.org/2026/11/python-3160-alpha-2-is-now-available/) Django Security Releases Issued: 6.1.3, 6.0.10, and 5.2.19 (https://www.djangoproject.com/weblog/2026/nov/03/security-releases/) PEP 850: Wheel Variants: Providers (Draft) (https://peps.python.org/pep-0850/) PEP 836: JIT Go Brrr: The Path to a Supported JIT Compiler for CPython (Withdrawn) (https://peps.python.org/pep-0836/) Python’s Experimental JIT to Be Removed (https://lwn.net/SubscriberLink/1102102/489e41d80e4966aa/) – PEP 836 has been withdrawn and the experimental JIT is to be removed from CPython’s main branch. This article talks about the JIT’s journey and what still may be in store. Announcing New Security Developer at the PSF (https://pyfound.blogspot.com/2026/10/announcing-new-security-developer-2026.html) – The Python Software Foundation welcomes Brett Smith as an additional security developer. In Memoriam: Tim Peters 1952–2026 - Core Development - Discussions on Python.org (https://discuss.python.org/t/in-memoriam-tim-peters-1952-2026/110028) Show Links: Python Performance Optimization: A Practical Guide (https://realpython.com/python-performance-optimization-guide/) – Learn practical Python performance optimization techniques, from confirming a bottleneck with timeit to picking the fix that makes your program faster. Django as a Simple Static Site Builder (https://nanodjango.dev/blog/2026-10-static-site-builder/) – Combining three libraries: nanodjango, django-nanopages, and django-distill, you can create a static site generator in just a few lines of code. Why learn another tool when you already know Django? How a Python Type Checker Decides a Variable Is Unused (https://www.denyszhak.com/writing/how-a-python-type-checker-decides-a-variable-is-unused) – A variable is unused only if no read resolves to its binding and in Python that read can sit inside a nested function or comprehension. This post walks through how ty, Astral’s Python type checker, finds local bindings nobody reads. Pull Request Limits for CPython Repo (https://discuss.python.org/t/pull-request-limits-for-cpython-repo/109564) – PyPI has set a limit for the maximum number of PRs (https://github.blog/changelog/2026-06-17-limit-open-pull-requests-for-users-without-write-access/) you can open at python/cpython (https://github.com/python/cpython) to 3, including drafts (https://github.blog/changelog/2026-10-08-draft-pull-requests-count-toward-pull-request-limits/). Project: Ghostman: Postman Alternative Built in Python With Textual (https://github.com/4yk5/Ghostman) terrahour: World Clock With a Day/Night Map for the Terminal (https://github.com/ACoci86/terrahour) Additional Links: What Exactly Is the Zen of Python? – Real Python (https://realpython.com/zen-of-python/) Profiling in Python: How to Find Performance Bottlenecks – Real Python (https://realpython.com/python-profiling/) Python’s Sampling Profiler: Low-Overhead Profiling With profiling.sampling – Real Python (https://realpython.com/python315-sampling-profiler/) Python Timer Functions: Three Ways to Monitor Your Code – Real Python (https://realpython.com/python-timer/) Common Python Data Structures (Guide) – Real Python (https://realpython.com/python-data-structures/) Speed Up Your Python Program With Concurrency – Real Python (https://realpython.com/python-concurrency/) Level up your Python skills with our expert-led courses: Dictionaries and Arrays: Selecting the Ideal Data Structure (https://realpython.com/courses/dicts-arrays-ideal-data-structure/) Records and Sets: Selecting the Ideal Data Structure (https://realpython.com/courses/records-sets-ideal-data-structure/) Build an AI Agent From Scratch in Python (https://realpython.com/courses/build-ai-agent-scratch-python/)

Episode information is provided by the publisher. Listening takes place on the publisher’s service.

Listen at the source ↗

Featured places to meet in Palo Alto, CA

Explore these places and arrange a conversation through ThinkMatch.

City guide for Palo Alto, CA

More from The Real Python Podcast

The Real Python Podcast

Mentoring Developers Beyond the Code With Tim Schilling

69 min

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 (https://realpython.com/learn-with-mentor-ai-async-python/) Experience a ne

Discuss this episode

The Real Python Podcast

Free-Threaded Python: Why Python Devs Should Know About the ABI

69 min

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. (https://www.propelauth.com/) Spotlight: Converting Documents to Markdown With MarkItDown (https://realpython.com/courses/converting-documents-markdown-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 (https://realpython.com/bonus/python313-free-threadi

Discuss this episode

Community Poll

Public bodies should publish the evidence behind important decisions.

Share your view, then see how readers voted. No sign-in required. This poll is shared across stories.

Do you agree or disagree?

Choose one answer

Common Quandary

A Common Quandary to discuss

Another conversation to explore, separate from this news story.

You have outgrown a lonely friend. Do you keep inviting them anyway?

An old friend keeps asking to join your newer social circle. They have done nothing wrong, but you no longer enjoy spending time together and suspect they have few other close relationships.

Can compassion require maintaining a friendship you no longer choose?

Explore this quandary