What python/cpython shipped
Written by FoxPlug from public releases; not affiliated with Python. An automatic summary of the public release, pull request and commit data of github.com/python/cpython. Python did not write it and does not use or endorse FoxPlug. Every line links to the public change it describes.
Get a weekly update like this for your product, free
Week of September 21, 2026
What shipped
- Fixed lazy import to correctly import `a.b` when using `import a.b as c` syntax, resolving a regression where only `a` was imported. Pull request #158092
- Fixed ctypes callbacks to properly widen narrow integer results to fill machine registers, preventing undefined behavior from high-order bits. Pull request #157045
- Fixed reverse dict iterators to detect when keys change during iteration, preventing incorrect yielding of entries or wrap-around errors in `__length_hint__()`. Pull request #158255
- Fixed stale TLBC cache issues in free-threaded builds that caused incorrect line numbers and persistent Invalid tlbc_index errors in remote debugging. Pull request #157732
- Converted `dir()`, `vars()`, `property.__set_name__()`, `memoryview.__exit__()`, and related functions to Argument Clinic for faster calling conventions and introspectable signatures. Pull request #158134
- Optimized Argument Clinic to use `_PyArg_NoKwnames()` for positional-only methods with a `defining_class` parameter instead of creating static parsers. Pull request #157483
- Updated OpenSSL in binaries and CI from 3.0 to 3.5 on Windows, macOS, and Android with corresponding SSL data updates. Pull request #158015
- Fixed building curses with narrow ncurses by using link checks instead of compile checks for function detection. Pull request #158088
- Fixed NameError and AttributeError to display complete exception messages in IDLE instead of truncated text. Pull request #135526
- Fixed IDLE crashing when a file open in the editor is deleted or renamed by another program during focus events. Pull request #153481
Why it matters
This week included important correctness fixes for dict iteration, ctypes callbacks, and lazy imports that affect runtime behavior. Significant refactoring converted more standard library functions to Argument Clinic for better performance and introspection. Infrastructure improvements include OpenSSL updates and curses build fixes.
Changelog entry
- Fixed lazy import to correctly import the full module path `a.b` when using `import a.b as c` syntax. Pull request #158092
- Fixed ctypes callbacks to widen narrow integer results to fill machine registers as required by libffi. Pull request #157045
- Fixed reverse dict iterators to detect key changes and prevent yielding more items than existed at iterator creation. Pull request #158255
- Fixed stale TLBC caches in free-threaded remote debugging that caused Invalid tlbc_index errors and incorrect line numbers. Pull request #157732
- Converted dir(), vars(), property.__set_name__(), and related functions to Argument Clinic for faster calls and introspectable signatures. Pull request #158134
- Optimized Argument Clinic to use faster calling convention for positional-only methods with defining_class parameter. Pull request #157483
- Updated OpenSSL from 3.0 to 3.5 in binaries and CI across Windows, macOS, and Android platforms. Pull request #158015
- Fixed curses build with narrow ncurses by using link checks instead of compile checks for function detection. Pull request #158088
- Fixed NameError and AttributeError to display complete messages in IDLE instead of truncated text. Pull request #135526
- Fixed IDLE crash when a file open in the editor is deleted or renamed by another program. Pull request #153481
- Reduced EPUB documentation table of contents depth from 3 to 2, reducing entries from 1,516 to 188. Pull request #158105
- Bumped Python magic number after adding fast path for match class patterns. Pull request #158258
Weekly digest: fixed lazy imports, dict reverse iteration, ctypes callbacks, and IDLE crashes. Converted more functions to Argument Clinic. Updated OpenSSL to 3.5.
This week's Python updates include critical bug fixes for lazy imports (now correctly import a.b), dict reverse iterators (detect key changes), and ctypes callbacks (proper register widening). Performance improvements via Argument Clinic conversion for dir(), vars(), and other stdlib functions. Infrastructure work includes OpenSSL 3.5 updates and curses build fixes.