Python: Free-Threading Safety and C API Hardening

Free-threaded reliability dominates this cycle, with fixes for crashes, contention, and slowdowns alongside C API and build hardening. Extension authors and high-thread services see the most impact.

Duration: PT2M25S

Episode overview

This episode is a short developer briefing from Python.

It explains recent repository work in plain language.

  • Show: Python
  • Published: 2026-10-07T13:15:35Z
  • Audio duration: PT2M25S

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 October 7th, 2026, and this is your Python developer briefing.

The throughline is free-threaded Python growing up: five separate changes chase crashes, contention and slowdowns when threads run truly in parallel.

First, correctness under concurrency. One fix, in P R 158910, closes a crash in bytes join when another thread mutates the input list mid-call, by taking the same critical-section approach previously used for string join. A companion change, P R 158927, makes the O S error-string function thread-safe by switching to…

Second, performance on free-threaded builds. P R 158791 replaces per-element atomic stores in list insert and delete with a fast bulk move when the list isn't shared, restoring vectorization for large shifts. And a backport for 3.14, P R 158904, skips global-variable specialization when locks would block, trading a…

Third, a steadier C API and toolchain. P R 158843 brings the set-reference macros into the limited API with expanded tests, while P R 156721 adds hardware-address-sanitizer build support and P R 158930 would make Argument Clinic fail on warnings. Extension authors get clearer guarantees and earlier catches.

Separately, watch small…

Nearby episodes from Python

  1. 3.15 Freeze Revert and Profiler Hardening
  2. Remote Inspection Hardening and Memory Safety Push
  3. Weekly Recap - Lazy Imports Harden, Safety and Observability Tighten
  4. Free-Threading Stability and Bytes Safety
  5. Lazy Imports Harden, Hot Paths Speed Up
  6. Lazy Import Overhaul and Bytes Hardening
  7. JIT Guard Fixes and Security Backports
  8. Concurrency Races and String Hardening