Repository navigation
Implement PEP 810 – Explicit lazy imports #142349
Copy link
Copy link
Open
8 / 88 of 8 issues completedLabels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-lazy-importstype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
- addedtype-featureA feature request or enhancementA feature request or enhancementinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
on Dec 6, 2025 The
__future__is now :)Reacted by Bartosz Sławecki, Soheab, Itamar Oren, An Long, Cloud, Beau Gunderson, Mykola Yurchenko and Brittany Reynosomodulefinderwill probably need some updating too, or at least documenting it doesn't support PEP 810.modulefinderwill 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_importsto do so, and that got fixed here: 0b36549Reacted by Filipe LaínsAh, great!
- added 4 commits that reference this issue
on Feb 12, 2026 52 remaining items
- added a commit that references this issue
on Sep 4, 2026 - added a sub-issue
on Sep 7, 2026 - added a commit that references this issue
on Oct 1, 2026 - marked Segmentation fault in __lazy_import__ with non-string fromlist item #158637 as a duplicate of this issue
on Oct 3, 2026 - added a commit that references this issue
on Oct 3, 2026
Metadata
Metadata
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-lazy-importstype-featureA feature request or enhancementA feature request or enhancement
Linked PRs
help("lazy")support #149886help("lazy")support (GH-149886) #149889sys.lazy_modulesdocs #152622LazyImportType.resolve()method #156936LazyImportType.resolve()method (GH-156936) #157296