Python: Free-Threading Races and a Reliability Sweep

CPython's free-threading builds got three more data-race fixes this cycle, while a cluster of correctness bugs in the garbage collector, deque, executors, and Windows path handling were closed out across main and backport branches.

Duration: PT2M30S

Episode overview

This episode is a short developer briefing from Python.

It explains recent repository work in plain language.

  • Show: Python
  • Published: 2026-07-04T13:04:37Z
  • Audio duration: PT2M30S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning. It's July 4th, 2026, and this is Python.

The clearest thread running through today's activity is free-threading hardening. Three separate patches closed synchronization gaps in the no-GIL build. Jiucheng fixed a race between garbage collector stats reads and writes with a new mutex in PR 151766, and a companion PR, 153015, closes a similar gap on the…

The second theme is defensive correctness fixes landing across core data structures and process management. Steve Stagg's PR 152961 fixes a double dereference bug in deque dot extend that could corrupt reference counts under allocation failure. Gregory P. Smith's PR 152978 addresses a real-world hang: when a process…

Elsewhere, Serhiy Storchaka continues a run of IDLE and parser work, adding a disassembly browser in PR 152974 and tightening HTML parser behavior for CDATA and comments. And concurrent-futures picked up lazy imports and a new ExecutorShutdownError for clearer failure signaling.

What to remember: if you're touching shared interpreter state under free-threading, check whether it needs a mutex or a simple atomic — both patterns are now well established in the codebase. And the process pool hang fix is worth…

That'…

Nearby episodes from Python

  1. Concurrency Bugs Get Squashed Across Branches
  2. Security Fixes and Code Cleanup
  3. Weekly Recap - Memory Safety and Stability Fixes
  4. Memory Safety and Performance Fixes
  5. Memory Safety and Process Pool Fixes
  6. Memory Safety and Performance Optimizations
  7. Memory Safety and Performance Hardening
  8. Memory Management and Documentation Fixes