Reacted by Bartosz Sławecki, Soheab, Itamar Oren, An Long, Cloud, Beau Gunderson, Mykola Yurchenko, Brittany Reynoso, Jakub Stawowy and Piotr Karmelita
modulefinder will probably need some updating too, or at least documenting it doesn't support PEP 810.
I suspect there was a test that already made sure this is working. It looks like this relies upon scanning the byte code, and uses dis._find_imports to do so, and that got fixed here: 0b36549
Activity
pablogsal commented on Dec 6, 2025
The __future__ is now :)
johnslavik commented on Dec 6, 2025
ZeroIntensity commented on Dec 6, 2025
FFY00 commented on Dec 10, 2025
modulefinder will probably need some updating too, or at least documenting it doesn't support PEP 810.
DinoV commented on Dec 10, 2025
I suspect there was a test that already made sure this is working. It looks like this relies upon scanning the byte code, and uses dis._find_imports to do so, and that got fixed here: 0b36549
FFY00 commented on Dec 10, 2025
Ah, great!
gh-142349: Implement PEP 810 - Explicit lazy imports (#142351)
pythongh-142349: Fix build errors from PEP 810
gh-142349: Fix build errors from PEP 810 (#144726)
pythongh-142349: Fix refcount corruption in lazy import specialization
55 remaining items
[3.15] gh-142349: Document `LazyImportType.resolve()` method (GH-156936…
pythongh-142349: Clarify that sys.lazy_modules may contain extra items (
pythongh-142349: Document `LazyImportType.resolve()` method (pythonGH…
pythongh-142349: Document `LazyImportType.resolve()` method (pythonGH…
gh-142349: Simplify lazy import resolution (#158282)
[3.15] gh-142349: Simplify lazy import resolution (GH-158282) (#158569)
gh-142349: Update lazy import comments in whatsnew (#158651)
[3.15] gh-142349: Update lazy import comments in whatsnew (GH-158651) (…
[3.15] pythongh-142349: Simplify lazy import resolution (pythonGH-158282
[3.15] pythongh-142349: Clarify that sys.lazy_modules may contain ext…
[3.15] pythongh-142349: Document `LazyImportType.resolve()` method (p…