Python: Garbage Collector Speedups and Thread-Safety Fixes
The garbage collector dominated activity with one merged optimization and four follow-ups to cut collection pauses, while separate fixes hardened the error-string and syslog modules for free-threading and subinterpreters.
Duration: PT2M48S
Episode overview
This episode is a short developer briefing from Python.
It explains recent repository work in plain language.
- Show: Python
- Published: 2026-10-11T13:05:01Z
- Audio duration: PT2M48S
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 11th, 2026, and this is your Python developer briefing.
The lead signal is a concerted push to make garbage collection faster, all tied to issue 159137.
Merged work in PR 159138 skips a redundant resurrection check. Today the collector does a second reachability pass because callbacks can bring objects back to life. If no weak reference callback, finalizer that runs Python code, or debug writer ran, it now reuses the first result. The finalization scan still runs,…
That merged change is just the start. Four follow-ups are now open from the same effort: PR 159152 to keep surviving objects in allocation order for better cache behavior, PR 159154 to fold tuple untracking and survivor counting into the existing walk, PR 159162 to restore known-root marking for full collections in…
The second theme is thread safety for the free-threading era. PR 159120, backported in 159145, makes the operating system error-string function thread-safe by using the reentrant system version where available, with a new stress test for free-threading. Related work in PR 159000, backported in 159125 and 159126,…
Elsewhere, reliability polish continues: PR 159158 fixes tarfile…
Nearby episodes from Python
- Reproducible Marshal Output and Runtime Speedups
- Weekly Recap - Thread Safety, GC Efficiency and Platform Polish
- IDLE Reliability Push and WASM Trampoline
- Crash Hardening and Release Readiness
- Runtime Hardening and Faster I/O
- Free-Threading Safety and C API Hardening
- 3.15 Freeze Revert and Profiler Hardening
- Remote Inspection Hardening and Memory Safety Push