English-language podcasts

Talk Python To Me

#570: Free-Threaded Python

62 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.

NumPy already releases the GIL. So threads should already pay off for your NumPy code, right? Christopher Ariza tested that. He summed the rows of a 10,000 by 10,000 array on Python 3.14. Sequential took 360 milliseconds. A thread pool took 373, slower than doing nothing. The same code on free-threaded Python 3.14t took 83.7 milliseconds. Free-threaded Python is officially supported as of 3.14. The GIL isn’t gone, though. It’s a zombie. Import one compiled package that hasn’t opted in, psycopg2 for example, and the GIL comes back for your entire process. You get a warning, not an error. Chris is the creator of StaticFrame and its C extension library ArrayKit. We dig into when threads beat plain NumPy, how to tell if you’re actually running free-threaded, and conditional-futures, his drop-in thread pool that stops your code from getting slower when the GIL wakes back up. Episode sponsors Talk Python Membership (https://talkpython.fm/talk-python-membership-fewer-ads) Talk Python Courses (https://talkpython.fm/training) Links from the show Guest Christopher Ariza: github.com (https://github.com/flexatone?featured_on=talkpython) GIL Guard project: mkennedy.codes (https://mkennedy.codes/posts/catch-the-import-name-the-culprit-keep-threads-free-introducing-gilguard/?featured_on=talkpython) chameleon-rs: mkennedy.codes (https://mkennedy.codes/posts/chameleon-templates-modernized-chameleon-rs/?featured_on=talkpython) diskcache-oxide: mkennedy.codes (https://mkennedy.codes/docs/diskcache-oxide/?featured_on=talkpython) Black Friday at Talk Python: talkpython.fm/black-friday (https://talkpython.fm/black-friday) episode 204: talkpython.fm (https://talkpython.fm/episodes/show/204/staticframe-like-pandas-but-safer) Fetter: fetter.io (https://fetter.io/?featured_on=talkpython) PyBay 2026: pybay.org (https://pybay.org/?featured_on=talkpython) StaticFrame: github.com (https://github.com/static-frame/static-frame?featured_on=talkpython) Free-threaded row-wise apply: static-frame.readthedocs.io (https://static-frame.readthedocs.io/en/latest/articles/freethread.html?featured_on=talkpython) Getting Started with Free-Threaded Python Using NumPy: github.com (https://github.com/flexatone/present-free-thread?featured_on=talkpython) Free-threaded Python: docs.python.org (https://docs.python.org/3/howto/free-threading-python.html?featured_on=talkpython) abi3t: peps.python.org (https://peps.python.org/pep-0803/?featured_on=talkpython) TonIO: talkpython.fm (https://talkpython.fm/episodes/show/561/tonio-a-multi-threaded-async-runtime-for-python) did a whole course: training.talkpython.fm (https://training.talkpython.fm/courses/python-concurrency-deep-dive) psycopg2: pypi.org (https://pypi.org/project/psycopg2/?featured_on=talkpython) ArrayKit: github.com (https://github.com/static-frame/arraykit?featured_on=talkpython) 217 of the top 360: hugovk.dev (https://hugovk.dev/free-threaded-wheels/?featured_on=talkpython) Quansights free-threading guide: py-free-threading.github.io (https://py-free-threading.github.io/?featured_on=talkpython) conditional-futures: github.com (https://github.com/static-frame/conditional-futures?featured_on=talkpython) rayon: github.com (https://github.com/rayon-rs/rayon?featured_on=talkpython) Watch this episode on YouTube: youtube.com (https://www.youtube.com/watch?v=9PhWaXMOjqw) Episode #570 deep-dive: talkpython.fm/570 (https://talkpython.fm/episodes/show/570/free-threaded-python) Episode transcripts: talkpython.fm (https://talkpython.fm/episodes/show/570/free-threaded-python) Theme Song: Developer Rap Served in a Flask : talkpython.fm/flasksong (https://talkpython.fm/flasksong) ---== Don't be a stranger ==--- YouTube: youtube.com/@talkpython (https://talkpython.fm/youtube) Bluesky: @talkpython.fm (https://bsky.app/profile/talkpython.fm) X.com: @talkpython (https://x.com/talkpython)

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 Talk Python To Me

Talk Python To Me

#569: Connecting Agents to Data via MCP, CLI, and More

63 min

Should your agent call an MCP server or just run a CLI? Pamela Fox joins us to share how she thinks about connecting AI and her data. She’s taught MCP workshops from PyCon to WeAreDevelopers. And, every week, an agent combs her Gmail, Outlook, and X history to build her news roundup. She uses MCP all day. Yet, there are still times you when to skip it. You'll hear how her colleague pitted the GitHub CLI against the GitHub MCP server on a real bug fix. The CLI used fewer tokens. It succeeded more often. So do we choose CLIs, MCPs, or even just APIs for connecting our agents to our data and services? Let's find out. Episode sponsors Talk Python Membership (https://talkpython.fm/talk-python-membership-continue-conversation) Talk Python Courses (https://talkpython.fm/training) Links from the show Guest Pamela Fox: pamelafox.org (https://pamelafox.org/?featured_on=talkpython) Meetup: SQLite Might *Actually* Be All You Need: talkpython.fm (https://talkpython.fm/meetups/sqlite-might-actually-

Discuss this episode

Talk Python To Me

#568: Cloudflare Python Workers

63 min

Where does your Python code actually run? A server in Virginia? A container in Frankfurt? Pyodide put Python into the browser. Cloudflare put the browser into the server. Combine the two and you get Python Workers, now generally available. My guests are Hood Chatham, Gyeongjae Choi, and Dominik Picheta from Cloudflare. Hood and Gyeongjae maintain Pyodide. Dominik got Python running in Cloudflare Workers in the first place. Your FastAPI app ships as plain Python files. It runs on CPython compiled to WebAssembly, inside V8, at over 350 locations worldwide. Episode sponsors Talk Python Membership (https://talkpython.fm/talk-python-membership-continue-conversation) Talk Python Courses (https://talkpython.fm/training) Links from the show Guests Gyeongjae Choi: linkedin.com (https://www.linkedin.com/in/gyeongjae-choi-b259b0163?featured_on=talkpython) Hood Chatham Dominik Picheta Pyodide: pyodide.com (https://pyodide.com/?featured_on=talkpython) Python Everywhere: The State of Python on WebAs

Discuss this episode

Community Poll

Polluters should pay cleanup costs even when the damage occurred many years ago.

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 make a hilarious deepfake of a friend for their birthday. Must you ask first?

For a private birthday party, someone creates a convincing video of a mutual friend delivering an absurd speech. Everyone, including the subject, will immediately understand that it is fake.

Does obvious fiction eliminate the need for consent?

Explore this quandary