Python: Lazy Imports Harden, Hot Paths Speed Up
Lazy imports dominate with sibling-resolution and registry-cleanup fixes plus new tests, alongside faster signature introspection and crash-safety hardening. The pattern is Python 3.15 maturing for startup performance and reliability.
Duration: PT2M28S
Episode overview
This episode is a short developer briefing from Python.
It explains recent repository work in plain language.
- Show: Python
- Published: 2026-10-03T13:09:33Z
- Audio duration: PT2M28S
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 Saturday, October 3rd, 2026, and this is your Python briefing.
The headline is lazy imports maturing, backed by a steady mix of performance tuning and hardening fixes.
First, lazy imports. Three linked changes tighten behavior for Python 3.15. Pull request 158521 fixes sibling submodules so accessing one package member no longer pulls in its neighbor first. Pull request 157714 cleans up the lazy modules registry more consistently, skipping already-loaded modules and removing…
Second, performance in small hot paths. Pull request 157463 speeds up signature introspection for plain Python functions by constructing parameters directly instead of full validation, cutting a seven-parameter case from about 23 microseconds to about 14. Related work trims overhead in byte stream readlines in…
Third, reliability and safety. Pull request 156205 guards the C-level exception-matching routine against deeply nested tuples that could exhaust the native stack and crash. Other fixes close a race in temporary directory cleanup in 158431, stop eager error logging from cancelled async shield wrappers in 158590, and…
What's next: watch backports to 3.14 and 3.15 settle, and test lazy…
Nearby episodes from Python
- Lazy Import Overhaul and Bytes Hardening
- JIT Guard Fixes and Security Backports
- Concurrency Races and String Hardening
- C Safety Fixes and Version APIs
- Clinic Cleanup Wave and Free-Threading Fixes
- Weekly Recap - Stabilization, C API Cleanup and Backports
- Lazy Import Fix and IDLE Hardening
- Free-Threading Fairness and Tokenizer Cleanup