Python: Weekly Recap - IMAP Overhaul & Parser Hardening

CPython's imaplib got a cluster of correctness and feature fixes while the HTML parser saw two distinct bug fixes tied to quadratic performance and comment handling, all backported across the 3.13 through 3.15 branches. Documentation cleanup, particularly around HTTP modules, made up a large share of the week's merge volume.

Duration: PT3M19S

Episode overview

This episode is a short developer briefing from Python.

It explains recent repository work in plain language.

  • Show: Python
  • Published: 2026-07-06T09:19:44Z
  • Audio duration: PT3M19S

Transcript excerpt

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

This is the Python weekly recap for June 29th through July 6th. Fifty pull request activity items and thirty additional commits landed this week.

The standout pattern: imaplib got serious attention from Serhiy Storchaka. Command argument quoting, disabled since Python 3.0 due to a chain of old bug fixes, is now restored, so mailbox names with spaces or special characters work correctly again. That's PR 153071 and its backports. A follow-up, PR 153067,…

Second theme: HTMLParser reliability. Two separate defects were fixed and backported through 3.13. PR 153031 addressed quadratic-time behavior when an unterminated tag or comment spans many feed calls, a real performance cliff for streaming parsers. PR 153007 fixed a correctness bug where an abruptly closed empty…

Third theme: documentation and polish, which accounted for a large share of merge activity. The http.cookiejar and http.server docs got reference-warning and typo cleanup across PRs 153032 through 153097, credited to contributors including Harjoth Khara, Hugo van Kemenade, and Bénédikt Tran. Smaller doc fixes…

Rounding out the week: a crash fix for copying BLAKE-2 hash objects, PR 153008; a fix for a curses compilation issue…

N…

Nearby episodes from Python

  1. Old Bugs, Long Overdue Fixes
  2. Free-Threading Races and a Reliability Sweep
  3. Concurrency Bugs Get Squashed Across Branches
  4. Security Fixes and Code Cleanup
  5. Weekly Recap - Memory Safety and Stability Fixes
  6. Memory Safety and Performance Fixes
  7. Memory Safety and Process Pool Fixes
  8. Memory Safety and Performance Optimizations