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: Update lazy imports C API and sys.flags documentation by brittanyrey · Pull Request #158966 · python/cpython

Conversation

@brittanyrey

@brittanyrey brittanyrey commented Oct 7, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Replace the PyImport_SetLazyImportsMode() description, which is a duplicate of from PyImport_ImportModuleAttrString(), and document the sys.flags.lazy_imports attribute.

  • 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
@brittanyrey
Fix lazy imports C API and sys.flags documentation
6fc7d09
Replace the PyImport_SetLazyImportsMode() description, which was copied
from PyImport_ImportModuleAttrString(), and document the
sys.flags.lazy_imports attribute.
@brittanyrey
brittanyrey requested review from FFY00, brettcannon, ericsnowcurrently, ncoghlan and warsaw as code owners October 7, 2026 13:50
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 7, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Oct 7, 2026
Implement PEP 810 – Explicit lazy imports #142349
Closed
@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Oct 7, 2026
@github-project-automation github-project-automation Bot added this to Docs PRs Oct 7, 2026
@read-the-docs-community

read-the-docs-community Bot commented Oct 7, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34994194 | 📁 Comparing 6fc7d09 against main (1610807)

  🔍 Preview build  

2 files changed
± c-api/import.html
± library/sys.html
All reactions

Sorry, something went wrong.

Uh oh!

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

@brittanyrey

brittanyrey commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Just came across a related PR: #155281

All reactions

Sorry, something went wrong.

Uh oh!

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

@brittanyrey brittanyrey added the needs backport to 3.15 bugs and security fixes label Oct 13, 2026
@brittanyrey
brittanyrey requested a review from DinoV October 13, 2026 15:29
DinoV
DinoV approved these changes Oct 21, 2026
View reviewed changes

@DinoV DinoV left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sorry, something went wrong.

Uh oh!

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

All reactions
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting review labels Oct 21, 2026
@DinoV
DinoV merged commit 867d16e into python:main Oct 21, 2026
39 of 45 checks passed

Uh oh!

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

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

miss-islington-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

Thanks @brittanyrey for the PR, and @DinoV for merging it 🌮🎉.. 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 commented Oct 21, 2026

Copy link
Copy Markdown

GH-160110 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 Oct 21, 2026
@brittanyrey
brittanyrey deleted the b-lazy-imports-docs branch October 22, 2026 16:02
hugovk pushed a commit that referenced this pull request Oct 25, 2026
@miss-islington @brittanyrey
[3.15] gh-142349: Update lazy imports C API and sys.flags documentati…
47ec308
…on (GH-158966) (#160110)

Co-authored-by: Brittany Reynoso <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@DinoV DinoV DinoV approved these changes
@brettcannon brettcannon Awaiting requested review from brettcannon brettcannon is a code owner
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@ncoghlan ncoghlan Awaiting requested review from ncoghlan ncoghlan is a code owner
@warsaw warsaw Awaiting requested review from warsaw warsaw is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 is a code owner

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 type-feature A feature request or enhancement

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

@brittanyrey @DinoV
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.