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 — gh-142349: Clarify that sys.lazy_modules may contain extra items by encukou · Pull Request #155547 · python/cpython

Conversation

@encukou

@encukou encukou commented Aug 11, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

As an author of a debugging/introspection tool, I need an honest description of what's in lazy_modules and what kinds of post-processing I'm expected to do.

Exposing internals rather than a super-polished API is fine, but needs to be described as such :)

  • Issue: Implement PEP 810 – Explicit lazy imports #142349

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@encukou
Clarify that sys.lazy_modules may contain extra items
62f2fcc
As an author of a debugging/introspection tool, I need an
honest description of what's in `lazy_modules` and what
kind of post-processing I'm expected to do.
@encukou
encukou requested a review from DinoV August 11, 2026 08:24
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Aug 11, 2026
@github-project-automation github-project-automation Bot added this to Docs PRs Aug 11, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Aug 11, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Aug 11, 2026
Implement PEP 810 – Explicit lazy imports #142349
Closed
@bedevere-app bedevere-app Bot added the awaiting core review label Aug 11, 2026
@read-the-docs-community

read-the-docs-community Bot commented Aug 11, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34009883 | 📁 Comparing 62f2fcc against main (198a835)

  🔍 Preview build  

1 file changed
± library/sys.html
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk hugovk added the needs backport to 3.15 bugs and security fixes label Aug 11, 2026
@encukou

encukou commented Sep 1, 2026

Copy link
Copy Markdown
Member Author

I'll merge ~Friday if there are no objections.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hugovk
hugovk approved these changes Sep 2, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Sep 2, 2026
@encukou
encukou merged commit 2632610 into python:main Sep 4, 2026
42 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented Sep 4, 2026

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label Sep 4, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Sep 4, 2026
@bedevere-app

bedevere-app Bot commented Sep 4, 2026

Copy link
Copy Markdown

GH-156934 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Sep 4, 2026
hugovk pushed a commit that referenced this pull request Sep 4, 2026
@miss-islington @encukou
[3.15] gh-142349: Clarify that sys.lazy_modules may contain extra ite…
0ca288a
…ms (GH-155547) (#156934)

gh-142349: Clarify that sys.lazy_modules may contain extra items (GH-155547)

As an author of a debugging/introspection tool, I need an
honest description of what's in `lazy_modules` and what
kind of post-processing I'm expected to do.
(cherry picked from commit 2632610)

Co-authored-by: Petr Viktorin <[email protected]>
Kronuz added a commit to Kronuz/cpython that referenced this pull request Sep 6, 2026
@Kronuz
Track the 3.15 branch tip, not just the tag, for parity
8bdbf6d
A post-rc2 doc commit (pythonGH-155547) showed the tag misses in-flight 3.15
work; record the branch tip and the two outstanding non-behavioral commits.
@encukou
encukou deleted the sys-lazy_modules-doc branch September 7, 2026 14:09
clin1234 pushed a commit to clin1234/cpython that referenced this pull request Sep 12, 2026
@encukou @clin1234
pythongh-142349: Clarify that sys.lazy_modules may contain extra items (
74052d4
pythonGH-155547)

As an author of a debugging/introspection tool, I need an
honest description of what's in `lazy_modules` and what
kind of post-processing I'm expected to do.
Kronuz pushed a commit to Kronuz/cpython that referenced this pull request Oct 5, 2026
@miss-islington @encukou @Kronuz
[3.15] pythongh-142349: Clarify that sys.lazy_modules may contain ext…
b85ac6c
…ra items (pythonGH-155547) (python#156934)

pythongh-142349: Clarify that sys.lazy_modules may contain extra items (pythonGH-155547)

As an author of a debugging/introspection tool, I need an
honest description of what's in `lazy_modules` and what
kind of post-processing I'm expected to do.
(cherry picked from commit 2632610)

Co-authored-by: Petr Viktorin <[email protected]>
(cherry picked from commit 0ca288a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hugovk hugovk hugovk approved these changes
@DinoV DinoV Awaiting requested review from DinoV

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

docs Documentation in the Doc dir skip news

Projects

Docs PRs
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@encukou @hugovk
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.