Python: XML Cleanup, Parser Speedups, and a Docs Split

One contributor, Serhiy Storchaka, drove a wide-ranging cleanup of the XML stack while Pablo Galindo landed a series of parser performance rewrites and Ned Batchelder's documentation split finished backporting across three release branches.

Duration: PT2M41S

Episode overview

This episode is a short developer briefing from Python.

It explains recent repository work in plain language.

  • Show: Python
  • Published: 2026-09-14T13:06:40Z
  • Audio duration: PT2M41S

Transcript excerpt

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

Good day, it's September 14th, and here's what moved in CPython.

The clearest pattern today is a sustained overhaul of the XML libraries, almost entirely from one contributor. Serhiy Storchaka pushed a chain of fixes across minidom and ElementTree: pretty-printing no longer corrupts significant whitespace in PR 156660, namespace declarations are now validated and correctly…

Second theme: parser internals. Pablo Galindo opened a trio of connected pull requests, 157465, 157437, and 157450, all under issue 153568, teaching the generated parser to reuse shared prefixes instead of re-parsing the same tokens for every grammar alternative. The last one goes further, unifying expression…

Third: documentation and versioning consistency. Ned Batchelder's builtins split, PR 156682, separates built-in functions from the standard library docs and has now been backported to the 3.13, 3.14, and 3.15 branches. Meanwhile Serhiy Storchaka is standardizing how compiled libraries report their versions, with…

Worth flagging individually: a free-threading fix for byte string resizing, PR 157373, was backported to both 3.13 and 3.14, and a security-relevant out-of-bounds write in memory-mapped file item…

Nex…

Nearby episodes from Python

  1. Weekly Recap - Memory Safety, Bytes Internals, and Doc Restructuring
  2. Hardening the Bytes Core and Trimming the Parser
  3. Hardening the Bytes Writer, Cleaning Up Async Task Tracking
  4. Free-Threading Bugs Take Center Stage
  5. Buffer Safety Sweep in Bytes and Strings
  6. Correctness Cleanup Across the Board
  7. Buffer Bugs and the Long Tail of Correctness Fixes
  8. Hardening the Hash Modules and Chasing a Tokenizer Rewrite