Python: Free-Threading Fixes and GC Speedups

Core runtime work dominated the cycle, with fixes for free-threading pauses, fork deadlocks and data races alongside memory-safety hardening for text and bytes handling. A stack of five open proposals aims to cut garbage collector overhead by combining passes and skipping unneeded scans.

Duration: PT2M31S

Episode overview

This episode is a short developer briefing from Python.

It explains recent repository work in plain language.

  • Show: Python
  • Published: 2026-10-17T13:08:52Z
  • Audio duration: PT2M31S

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

The lead signal is core interpreter reliability, especially for free-threaded builds, paired with a push to make garbage collection leaner.

First, concurrency correctness and speed. A fix tracked as PR 159269 stops pausing all threads when setting a function's name, qualified name, documentation or module attributes, a path that had made function wrappers orders of magnitude slower with multiple threads. It switches to per-object locking and delayed…

Second, crash safety in text, bytes and Unicode handling. Backports tracked as PR 159600 and 159591 fix a use-after-free in the text input-output wrapper when user code detaches the underlying buffer during reentrant calls. Companion work tightens byte-string resizing when a hash is already computed, rejects invalid…

Third, garbage collector efficiency. Five open proposals under issue 159437 would combine reference-count walks into one, skip legacy finalizer scans when no finalizers exist, and skip late weak-reference cleanup when earlier scans show no work is needed, with better handling for frozen objects.

Also notable: a proposal in PR 159563 to run the…

Nearby episodes from Python

  1. Free-Threading Races, Core Speedups, and Stdlib Hardening
  2. Free-Threading Crash Fixes and Cleanup Guarantees
  3. Free-Threading Hardening and iOS Builds
  4. Deterministic Pyc Files and Threading Hardening
  5. Reproducible Marshal Output and Runtime Speedups
  6. Weekly Recap - Thread Safety, GC Efficiency and Platform Polish
  7. Garbage Collector Speedups and Thread-Safety Fixes
  8. IDLE Reliability Push and WASM Trampoline