Python: Runtime Hardening and Profiler Reliability

CPython landed memory-safety fixes for iter sentinels, the profiler, and the HZ decoder alongside stricter startup semantics and self-describing binary profiles. The pattern is hardening C boundaries while making observability data more trustworthy.

Duration: PT2M37S

Episode overview

This episode is a short developer briefing from Python.

It explains recent repository work in plain language.

  • Show: Python
  • Published: 2026-09-25T13:09:27Z
  • Audio duration: PT2M37S

Transcript excerpt

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

Hello, it's Friday, September 25th, 2026, and this is your Python developer briefing.

The headline is reliability at the C level, with memory safety fixes, cleaner startup semantics, and more trustworthy profiling landing together.

First, use-after-free and boundary errors. Pull request 158145 fixes a heap use-after-free in the callable-with-sentinel form of iter and async iter, where comparing the sentinel could run arbitrary Python code on a borrowed reference. Pull request 157648 fixes a related lifetime bug in the tracing profiler, where…

Second, startup and C API boundaries are getting stricter. Pull request 158085 changes initialization-from-config so it no longer exits the process directly, moving exit handling to main and deprecating the old exit-code helpers. Pull request 158020 keeps only four global configuration variables in the stable ABI.…

Third, observability is maturing. Pull requests 154105 and 158144 store profiling mode and capture settings in binary profiles, and pull request 153806 adds a Tachyon oracle script to repeatedly validate remote inspection results. That means sampled profiles become self-describing and regressions in reported data…

Finally, parser and…

Nearby episodes from Python

  1. Security Backports and IDLE Reliability Push
  2. IDLE Stability and Free-Threading Safety
  3. C API Lockdown and Free-Threading Gains
  4. Core Speedups and Interactive Tool Fixes
  5. Weekly Recap - Core Speedups, Text Handling and Release Stabilization
  6. F-String Slowdown Fix and Runtime Hardening
  7. Cleanup, Correctness, and a Trickle of Backports
  8. Hardening Memory Safety at the Core