Python: Free-Threading Stability and Bytes Safety

Free-threaded crash, deadlock and data-race fixes dominated activity, alongside memory-safety fixes for the core bytes type. Pool buffering, asyncio gather performance, and interpreter specialization corrections round out the reliability impact.

Duration: PT2M19S

Episode overview

This episode is a short developer briefing from Python.

It explains recent repository work in plain language.

  • Show: Python
  • Published: 2026-10-04T13:09:04Z
  • Audio duration: PT2M19S

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 Sunday, October 4th, 2026.

The big signal this weekend is stability under concurrency, with a cluster of fixes for crashes, deadlocks and data races in the free-threaded build, paired with memory-safety hardening in the core bytes type.

First, free-threading reliability. One change fixes crashes when iterating a split dictionary while another thread deletes entries, by publishing order updates atomically. Another defers critical-section restoration after a stop-the-world pause to break a deadlock between threads holding type locks and waiting on…

Second, bytes correctness. Pull request 158584 fixes an uninitialized memory read in bytes from hex, now backported to the 3.14 and 3.15 branches. Related work in pull request 158589 changes bytes resizing to allocate a new object once a hash is computed, rather than mutating in place. Together with a faster…

Finally, task execution and specialization. Two pool fixes address buffered ordered mapping losing results after close and blocking other tasks while throttled, while a separate fix restores asyncio gather performance. On the interpreter side, corrections to metaclass call handling and subscript specialization for…

What…

Nearby episodes from Python

  1. Lazy Imports Harden, Hot Paths Speed Up
  2. Lazy Import Overhaul and Bytes Hardening
  3. JIT Guard Fixes and Security Backports
  4. Concurrency Races and String Hardening
  5. C Safety Fixes and Version APIs
  6. Clinic Cleanup Wave and Free-Threading Fixes
  7. Weekly Recap - Stabilization, C API Cleanup and Backports
  8. Lazy Import Fix and IDLE Hardening