René's URL Explorer Experiment


Title: gh-161708: Document the __lazy_import__ built-in function by RoryGlenn · Pull Request #161762 · python/cpython · GitHub

Open Graph Title: gh-161708: Document the __lazy_import__ built-in function by RoryGlenn · Pull Request #161762 · python/cpython

X Title: gh-161708: Document the __lazy_import__ built-in function by RoryGlenn · Pull Request #161762 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Document __lazy_import__ for programmatic lazy imports at module scope, including its arguments, namespace requirements, lazy proxy behavior and eager fallback. Link the entry from the language ref...

X Description: Document __lazy_import__ for programmatic lazy imports at module scope, including its arguments, namespace requirements, lazy proxy behavior and eager fallback. Link the entry from the language ref...

Opengraph URL: https://github.com/python/cpython/pull/161762

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d9c31754-50ab-155e-573d-55f4e75dff5a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9458:380435:9F190:CA4D3:6B01EC10
html-safe-nonce76c917340ac8f77f99016e716875525d1478d882fb4414ebad8fe23f0dfb87ea
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDU4OjM4MDQzNTo5RjE5MDpDQTREMzo2QjAxRUMxMCIsInZpc2l0b3JfaWQiOiIxOTI2NDc2NDA2ODg4MzQ3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb482652179203a4cb36d0f5e5519f39a7c8ba51433a272bc6c420de94707da77
hovercard-subject-tagpull_request:5245876450
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/161762/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6d6862b9b65ce1470ad61fb2289f49972182ea7bf74fe608b3cde54cca81a2f2/python/cpython/pull/161762
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6d6862b9b65ce1470ad61fb2289f49972182ea7bf74fe608b3cde54cca81a2f2/python/cpython/pull/161762
og:image:altDocument __lazy_import__ for programmatic lazy imports at module scope, including its arguments, namespace requirements, lazy proxy behavior and eager fallback. Link the entry from the language ref...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRoryGlenn
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/161762#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161762
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161762
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/161762
Reloadhttps://github.com/python/cpython/pull/161762
Reloadhttps://github.com/python/cpython/pull/161762
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
RoryGlennhttps://github.com/RoryGlenn
python:mainhttps://github.com/python/cpython/tree/main
RoryGlenn:gh-161708-document-lazy-importhttps://github.com/RoryGlenn/cpython/tree/gh-161708-document-lazy-import
Conversationhttps://github.com/python/cpython/pull/161762
Commits4 (4)https://github.com/python/cpython/pull/161762/commits
Checkshttps://github.com/python/cpython/pull/161762/checks
Files changedhttps://github.com/python/cpython/pull/161762/files
gh-161708: Document the __lazy_import__ built-in functionhttps://github.com/python/cpython/pull/161762#top
RoryGlennhttps://github.com/RoryGlenn
python:mainhttps://github.com/python/cpython/tree/main
RoryGlenn:gh-161708-document-lazy-importhttps://github.com/RoryGlenn/cpython/tree/gh-161708-document-lazy-import
https://github.com/RoryGlenn
RoryGlennhttps://github.com/RoryGlenn
Nov 10, 2026https://github.com/python/cpython/pull/161762#issue-6312272273
Please reload this pagehttps://github.com/python/cpython/pull/161762
#161716https://github.com/python/cpython/pull/161716
Document __lazy_import__ #161708https://github.com/python/cpython/issues/161708
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/RoryGlenn
pythongh-161708https://github.com/python/cpython/issues/161708
: Document the __lazy_import__ built-in functionhttps://github.com/python/cpython/pull/161762/commits/f34ba9882b2bc06a45513d749b1ce421e74e376c
f34ba98https://github.com/python/cpython/pull/161762/commits/f34ba9882b2bc06a45513d749b1ce421e74e376c
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 10, 2026 https://github.com/python/cpython/pull/161762#ref-issue-6295740792
Document __lazy_import__ #161708 https://github.com/python/cpython/issues/161708
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
docs https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Adocs
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Nov 10, 2026https://github.com/python/cpython/pull/161762#event-35710022377
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Docs PRshttps://github.com/orgs/python/projects/50
Nov 10, 2026https://github.com/python/cpython/pull/161762#event-35710026183
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Docs PRshttps://github.com/orgs/python/projects/50
Nov 10, 2026https://github.com/python/cpython/pull/161762#event-35710029530
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
Nov 10, 2026https://github.com/python/cpython/pull/161762#issuecomment-6774544146
Please reload this pagehttps://github.com/python/cpython/pull/161762
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#35872802https://app.readthedocs.org/projects/cpython-previews/builds/35872802/
da4ac43https://github.com/python/cpython/commit/da4ac432db941d43673cace0c21c32f6f4d2793a
mainhttps://cpython-previews.readthedocs.io/en/main/
2f0e294https://github.com/python/cpython/commit/2f0e294d85c905691e360586ebd1d1f7e7a1f5df
  🔍 Preview build   https://cpython-previews--161762.org.readthedocs.build/en/161762/
glossary.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/glossary.html
index.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/index.html
builtins/functions.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/builtins/functions.html
c-api/code.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/c-api/code.html
c-api/conversion.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/c-api/conversion.html
c-api/dict.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/c-api/dict.html
c-api/exceptions.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/c-api/exceptions.html
c-api/file.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/c-api/file.html
c-api/frame.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/c-api/frame.html
c-api/profiling.htmlhttps://cpython-previews--161762.org.readthedocs.build/en/161762/c-api/profiling.html
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Nov 10, 2026 https://github.com/python/cpython/pull/161762#pullrequestreview-5846705656
View reviewed changes https://github.com/python/cpython/pull/161762/files/f34ba9882b2bc06a45513d749b1ce421e74e376c
Doc/builtins/functions.rsthttps://github.com/python/cpython/pull/161762/files/f34ba9882b2bc06a45513d749b1ce421e74e376c#diff-6f52938ccf212a8a44906f01b5fd15dc063b4f114ea4aa074a1363e56576d7d9
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/RoryGlenn
pythongh-161708https://github.com/python/cpython/issues/161708
: Document the __lazy_import__ built-in functionhttps://github.com/python/cpython/pull/161762/commits/4d01f7fbc3c80222fbf3c8362308d4e2fe1c7979
4d01f7fhttps://github.com/python/cpython/pull/161762/commits/4d01f7fbc3c80222fbf3c8362308d4e2fe1c7979
https://github.com/RoryGlenn
RoryGlennhttps://github.com/RoryGlenn
Nov 11, 2026https://github.com/python/cpython/pull/161762#issuecomment-6804146085
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/RoryGlenn
RoryGlennhttps://github.com/RoryGlenn
November 11, 2026 18:37https://github.com/python/cpython/pull/161762#event-35831634943
https://github.com/RoryGlenn
RoryGlennhttps://github.com/RoryGlenn
AA-Turnerhttps://github.com/AA-Turner
willingchttps://github.com/willingc
code ownershttps://github.com/python/cpython/blob/f34992bfab227932675d491a32bb44835aeee089/.github/CODEOWNERS#L115
November 11, 2026 18:37https://github.com/python/cpython/pull/161762#event-35831635937
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Nov 11, 2026https://github.com/python/cpython/pull/161762#event-35831641438
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Nov 11, 2026https://github.com/python/cpython/pull/161762#issuecomment-6804212240
Please reload this pagehttps://github.com/python/cpython/pull/161762
Your team has set up Codex to review pull requests in this repohttps://chatgpt.com/codex/cloud/settings/general
@codexhttps://github.com/codex
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/JadenV15
JadenV15https://github.com/JadenV15
Nov 11, 2026 https://github.com/python/cpython/pull/161762#pullrequestreview-5866700415
View reviewed changes https://github.com/python/cpython/pull/161762/files/4d01f7fbc3c80222fbf3c8362308d4e2fe1c7979
Doc/builtins/functions.rsthttps://github.com/python/cpython/pull/161762/files/4d01f7fbc3c80222fbf3c8362308d4e2fe1c7979#diff-6f52938ccf212a8a44906f01b5fd15dc063b4f114ea4aa074a1363e56576d7d9
Please reload this pagehttps://github.com/python/cpython/pull/161762
Doc/builtins/functions.rsthttps://github.com/python/cpython/pull/161762/files/4d01f7fbc3c80222fbf3c8362308d4e2fe1c7979#diff-6f52938ccf212a8a44906f01b5fd15dc063b4f114ea4aa074a1363e56576d7d9
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/JadenV15
JadenV15https://github.com/JadenV15
Nov 13, 2026https://github.com/python/cpython/pull/161762#issuecomment-6846567666
Please reload this pagehttps://github.com/python/cpython/pull/161762
import_module()https://docs.python.org/3/library/importlib.html#importlib.import_module
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/RoryGlenn
pythongh-161708https://github.com/python/cpython/issues/161708
: Address lazy-import documentation reviewhttps://github.com/python/cpython/pull/161762/commits/039658b302bb0bf4caca95671cc8008741d466de
039658bhttps://github.com/python/cpython/pull/161762/commits/039658b302bb0bf4caca95671cc8008741d466de
https://github.com/RoryGlenn
RoryGlennhttps://github.com/RoryGlenn
Nov 13, 2026https://github.com/python/cpython/pull/161762#issuecomment-6855068328
039658bhttps://github.com/python/cpython/commit/039658b302bb0bf4caca95671cc8008741d466de
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Nov 13, 2026 https://github.com/python/cpython/pull/161762#pullrequestreview-5892551506
View reviewed changes https://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de
Doc/builtins/functions.rsthttps://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de#diff-6f52938ccf212a8a44906f01b5fd15dc063b4f114ea4aa074a1363e56576d7d9
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Nov 13, 2026 https://github.com/python/cpython/pull/161762#pullrequestreview-5892597087
View reviewed changes https://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de
Doc/builtins/functions.rsthttps://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de#diff-6f52938ccf212a8a44906f01b5fd15dc063b4f114ea4aa074a1363e56576d7d9
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Nov 13, 2026 https://github.com/python/cpython/pull/161762#pullrequestreview-5892644259
View reviewed changes https://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de
Doc/builtins/functions.rsthttps://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de#diff-6f52938ccf212a8a44906f01b5fd15dc063b4f114ea4aa074a1363e56576d7d9
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Nov 13, 2026 https://github.com/python/cpython/pull/161762#pullrequestreview-5892672934
View reviewed changes https://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de
Doc/builtins/functions.rsthttps://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de#diff-6f52938ccf212a8a44906f01b5fd15dc063b4f114ea4aa074a1363e56576d7d9
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/RoryGlenn
pythongh-161708https://github.com/python/cpython/issues/161708
: Document the __lazy_import__ built-in functionhttps://github.com/python/cpython/pull/161762/commits/da4ac432db941d43673cace0c21c32f6f4d2793a
da4ac43https://github.com/python/cpython/pull/161762/commits/da4ac432db941d43673cace0c21c32f6f4d2793a
https://github.com/RoryGlenn
RoryGlennhttps://github.com/RoryGlenn
Nov 13, 2026https://github.com/python/cpython/pull/161762#issuecomment-6858807571
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Nov 21, 2026 https://github.com/python/cpython/pull/161762#ref-pullrequest-6529313761
gh-142349: Fill gaps in lazy import documentation #162386 https://github.com/python/cpython/pull/162386
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161762
https://github.com/picnixz
picnixz https://github.com/picnixz
https://github.com/python/cpython/pull/161762/files/039658b302bb0bf4caca95671cc8008741d466de
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/161762/files/f34ba9882b2bc06a45513d749b1ce421e74e376c
https://github.com/willingc
willingc https://github.com/willingc
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/JadenV15
JadenV15 https://github.com/JadenV15
https://github.com/python/cpython/pull/161762/files/4d01f7fbc3c80222fbf3c8362308d4e2fe1c7979
Please reload this pagehttps://github.com/python/cpython/pull/161762
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
docs https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Adocs
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Docs PRs https://github.com/orgs/python/projects/50
Please reload this pagehttps://github.com/python/cpython/pull/161762
https://github.com/RoryGlenn
https://github.com/JadenV15
https://github.com/picnixz
https://github.com/StanFromIreland
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.