Python: Crash Hardening and Faster Exceptions

CPython merged a cluster of small memory-safety and stability fixes alongside a traceback performance win. Most fixes are already backported to 3.14 and 3.15.

Duration: PT1M50S

Episode overview

This episode is a short developer briefing from Python.

It explains recent repository work in plain language.

  • Show: Python
  • Published: 2026-11-06T14:08:25Z
  • Audio duration: PT1M50S

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 November 6th, 2026.

The lead signal today is hardening. A half-dozen focused fixes close crash, overflow, and incorrect-behavior paths in core types, with most already backported to the 3.14 and 3.15 branches.

First, memory safety and type confusion. One fix corrects a byte array overflow when constructing from an iterator that mutates the object during iteration, in PR 158947. A related fix adds a type check for the decimal current context, in PR 161399. Previously, storing a non-context value in the internal context…

Second, performance for a hot path. PR 161243 adds a per-thread freelist for traceback objects, which are created on every raised exception. Benchmarks in the change report roughly four to nine percent faster exception raise-and-catch, including key error and attribute error cases.

Third, API cleanup and docs. PR 150190 starts raising a deprecation warning on use of typing Any Str, signaling pending removal. Alongside that are documentation cleanups for the turtle module and the Configure Python build targets, plus an acknowledgement of prior profiling work in the Tachyon docs.

What's next: expect the stability fixes to ride the maintenance releases,…

Nearby episodes from Python

  1. Memory Safety Hardening and Core Type Speedups
  2. Weekly Recap - Build Health, Speed Tweaks and Doc Cleanup
  3. Core Speedups and Isolation Fixes
  4. Interpreter Stability Fixes and Silent Data Corrections
  5. Free-Threading Safety and Asyncio Reliability Fixes
  6. Asyncio Resilience and Faster Builtins
  7. Reliability Fixes and Bundled Updates
  8. Stdlib Hardening and Asyncio Fixes