GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implement PEP 810 – Explicit lazy imports · Issue #142349 · python/cpython

Implement PEP 810 – Explicit lazy imports #142349

New issue
Copy link
New issue
Copy link
Closed
8 / 88 of 8 issues completed
Closed
Implement PEP 810 – Explicit lazy imports#142349
8 / 88 of 8 issues completed
Copy link
Assignees
DinoVYhg1spablogsal
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

Description

@pablogsal
pablogsal
opened on Dec 6, 2025
Issue body actions

Linked PRs

  • gh-142349: Implement PEP 810 - Explicit lazy imports #142351
  • gh-142349: Fix build errors from PEP 810 #144726
  • gh-142349: Fix refcount corruption in lazy import specialization #144733
  • gh-142349: Add CODEOWNERS for lazy imports #144840
  • gh-142349: Fix ast.unparse for lazy import statements #144893
  • gh-142349: Move all lazy-imports-by-hand to use the new lazy keyword #144894
  • gh-142349: Add help("lazy") support #149886
  • [3.15] gh-142349: Add help("lazy") support (GH-149886) #149889
  • gh-142349: Improve sys.lazy_modules docs #152622
  • gh-142349: Clarify lazy import filters have positional-only parameters #144856
  • [3.15] gh-142349: Clarify lazy import filters have positional-only parameters (GH-144856) #154808
  • gh-142349: Clarify that sys.lazy_modules may contain extra items #155547
  • [3.15] gh-142349: Clarify that sys.lazy_modules may contain extra items (GH-155547) #156934
  • gh-142349: Document LazyImportType.resolve() method #156936
  • [3.15] gh-142349: Document LazyImportType.resolve() method (GH-156936) #157296
  • 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) #158652
  • gh-142349: Update lazy imports C API and sys.flags documentation #158966
  • [3.15] gh-142349: Update lazy imports C API and sys.flags documentation (GH-158966) #160110
Reacted by Savannah Ostrowski, Bartosz Sławecki, Peter Bierma, Soheab, Filipe Laíns, Cloud, baseplate-admin, Mickaël Schoentgen, Maurycy Pawłowski-Wieroński, Piotr Karmelita and 2 more
Reacted by Stan Ulbrych, Savannah Ostrowski, Bartosz Sławecki, Nice Zombies, devdanzin, Cody Maloney, Soheab, Filipe Laíns, An Long, Cloud and 2 more

Activity

Next
  1. pablogsal
    assigned
    pablogsal
    ,
    DinoV
    and
    Yhg1s
    on Dec 6, 2025
  2. StanFromIreland
    added
    type-featureA feature request or enhancementA feature request or enhancement
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Dec 6, 2025
  3. pablogsal commented on Dec 6, 2025

    @pablogsal
    pablogsal
    on Dec 6, 2025
    MemberAuthor
    More actions

    The __future__ is now :)

    Reacted by Bartosz Sławecki, Soheab, Itamar Oren, An Long, Cloud, Beau Gunderson, Mykola Yurchenko, Brittany Reynoso, Jakub Stawowy and Piotr Karmelita
  4. johnslavik commented on Dec 6, 2025

    @johnslavik
    johnslavik
    on Dec 6, 2025 · Hidden as resolved
    show commentMore actions
  5. ZeroIntensity commented on Dec 6, 2025

    @ZeroIntensity
    ZeroIntensity
    on Dec 6, 2025 · Hidden as resolved
    show commentMore actions
  6. FFY00 commented on Dec 10, 2025

    @FFY00
    FFY00
    on Dec 10, 2025
    Member
    More actions

    modulefinder will probably need some updating too, or at least documenting it doesn't support PEP 810.

  7. DinoV commented on Dec 10, 2025

    @DinoV
    DinoV
    on Dec 10, 2025
    Contributor
    More actions

    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

    Reacted by Filipe Laíns and Piotr Karmelita
  8. FFY00 commented on Dec 10, 2025

    @FFY00
    FFY00
    on Dec 10, 2025
    Member
    More actions

    Ah, great!

  9. pablogsal
    added 4 commits that reference this issue on Feb 12, 2026

    gh-142349: Implement PEP 810 - Explicit lazy imports (#142351)

    46d5106

    pythongh-142349: Fix build errors from PEP 810

    60dafbb

    gh-142349: Fix build errors from PEP 810 (#144726)

    7854597

    pythongh-142349: Fix refcount corruption in lazy import specialization

    239c717
  10. 59 remaining items

  11. hugovk
    added a commit that references this issue on Oct 1, 2026

    gh-142349: Simplify lazy import resolution (#158282)

    a6a63b6
  12. pablogsal
    added a commit that references this issue on Oct 1, 2026

    [3.15] gh-142349: Simplify lazy import resolution (GH-158282) (#158569)

    021f634
  13. StanFromIreland
    marked Segmentation fault in __lazy_import__ with non-string fromlist item #158637 as a duplicate of this issue on Oct 3, 2026
  14. nedbat
    added a commit that references this issue on Oct 3, 2026

    gh-142349: Update lazy import comments in whatsnew (#158651)

    9a15440
  15. hugovk
    added a commit that references this issue on Oct 3, 2026

    [3.15] gh-142349: Update lazy import comments in whatsnew (GH-158651) (…

    6d9b6f9
  16. Kronuz
    added 3 commits that reference this issue on Oct 5, 2026

    [3.15] pythongh-142349: Simplify lazy import resolution (pythonGH-158282

    cc8f28a

    [3.15] pythongh-142349: Clarify that sys.lazy_modules may contain ext…

    b85ac6c

    [3.15] pythongh-142349: Document `LazyImportType.resolve()` method (p…

    19867ad
  17. kevinprimeraquecreo-stack
    added this to Project_VKon Oct 18, 2026
  18. github-project-automation
    moved this to Todo in Project_VKon Oct 18, 2026
  19. kevinprimeraquecreo-stack
    added this to Project_VKon Oct 18, 2026
  20. DinoV
    added a commit that references this issue on Oct 21, 2026

    gh-142349: Update lazy imports C API and sys.flags documentation (#15…

    867d16e
  21. hugovk
    added a commit that references this issue on Oct 25, 2026

    [3.15] gh-142349: Update lazy imports C API and sys.flags documentati…

    47ec308
  22. hugovk commented on Oct 25, 2026

    @hugovk
    hugovk
    on Oct 25, 2026
    Member
    More actions

    Python 3.15 has been released with lazy imports! Thanks everyone!

    Reacted by Brittany Reynoso and Bartosz Sławecki
  23. hugovk
    closed this as completedon Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @DinoV
    DinoV
  • @Yhg1s
    Yhg1s
  • @pablogsal
    pablogsal

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.