René's URL Explorer Experiment


Title: gh-118761: Add helper to ensure that lazy imports are actually lazy by JelleZijlstra · Pull Request #132614 · python/cpython · GitHub

Open Graph Title: gh-118761: Add helper to ensure that lazy imports are actually lazy by JelleZijlstra · Pull Request #132614 · python/cpython

X Title: gh-118761: Add helper to ensure that lazy imports are actually lazy by JelleZijlstra · Pull Request #132614 · python/cpython

Description: This ensures that if we jump through some hoops to make sure something is imported lazily, we don't regress on importing it. I recently already accidentally made typing import warnings and annotati...

Open Graph Description: This ensures that if we jump through some hoops to make sure something is imported lazily, we don't regress on importing it. I recently already accidentally made typing import warnings and anno...

X Description: This ensures that if we jump through some hoops to make sure something is imported lazily, we don't regress on importing it. I recently already accidentally made typing import warnings and ...

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

X: @github

direct link

Domain: github.com

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:864eb521-ee1a-1960-6423-f1b468039dd6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBD5C:60C6C:FDCBA1:151CA88:696991D0
html-safe-nonce07b5aae937a75751dcb5b491b3cf5de23abaf73721cce2cf0bd53623ff3da585
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDVDOjYwQzZDOkZEQ0JBMToxNTFDQTg4OjY5Njk5MUQwIiwidmlzaXRvcl9pZCI6IjQ5MDUwMjEyOTk5ODYzNzEwMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7b625330da894d1731fda5bf19ed0e21cd6416b108b07c7179b4ca9b0ae12527
hovercard-subject-tagpull_request:2464505189
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/132614/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3c21f84336ce7ecbb61d0ed942bb77c23a1c2b4b3f6c97910158afe66b44806a/python/cpython/pull/132614
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c21f84336ce7ecbb61d0ed942bb77c23a1c2b4b3f6c97910158afe66b44806a/python/cpython/pull/132614
og:image:altThis ensures that if we jump through some hoops to make sure something is imported lazily, we don't regress on importing it. I recently already accidentally made typing import warnings and anno...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJelleZijlstra
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
turbo-cache-controlno-preview
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/132614#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132614
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132614
Sign up https://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/132614
Reloadhttps://github.com/python/cpython/pull/132614
Reloadhttps://github.com/python/cpython/pull/132614
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/132614
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/132614
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/132614#issue-comment-box
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
JelleZijlstra:runtimedocshttps://github.com/JelleZijlstra/cpython/tree/runtimedocs
gh-118761: Add helper to ensure that lazy imports are actually lazy https://github.com/python/cpython/pull/132614#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
JelleZijlstra:runtimedocshttps://github.com/JelleZijlstra/cpython/tree/runtimedocs
Conversation 8 https://github.com/python/cpython/pull/132614
Commits 2 https://github.com/python/cpython/pull/132614/commits
Checks 36 https://github.com/python/cpython/pull/132614/checks
Files changed 3 https://github.com/python/cpython/pull/132614/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 16, 2025https://github.com/python/cpython/pull/132614#issue-3000698171
Please reload this pagehttps://github.com/python/cpython/pull/132614
Improve import time of various stdlib modules #118761https://github.com/python/cpython/issues/118761
Please reload this pagehttps://github.com/python/cpython/pull/132614
https://github.com/JelleZijlstra
pythongh-118761https://github.com/python/cpython/issues/118761
: Add helper to ensure that lazy imports are actually …https://github.com/python/cpython/pull/132614/commits/a55b37e6c76deefc8a96bb4a718171cafd792341
a55b37ehttps://github.com/python/cpython/pull/132614/commits/a55b37e6c76deefc8a96bb4a718171cafd792341
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
AA-Turnerhttps://github.com/AA-Turner
April 16, 2025 20:43https://github.com/python/cpython/pull/132614#event-17295678370
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
AlexWaygoodhttps://github.com/AlexWaygood
brettcannonhttps://github.com/brettcannon
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
ncoghlanhttps://github.com/ncoghlan
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/591c982c6e57a12fbb869a1e0172d4da82a27d66/.github/CODEOWNERS#L247
April 16, 2025 20:43https://github.com/python/cpython/pull/132614#event-17295678548
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 16, 2025https://github.com/python/cpython/pull/132614#event-17295679281
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 16, 2025 https://github.com/python/cpython/pull/132614#ref-issue-2285570381
Improve import time of various stdlib modules #118761 https://github.com/python/cpython/issues/118761
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Apr 16, 2025https://github.com/python/cpython/pull/132614#event-17295681874
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 16, 2025 https://github.com/python/cpython/pull/132614#pullrequestreview-2773800552
View reviewed changes https://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341
Lib/test/test_typing.pyhttps://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 16, 2025https://github.com/python/cpython/pull/132614#discussion_r2047721414
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#132596https://github.com/python/cpython/pull/132596
Please reload this pagehttps://github.com/python/cpython/pull/132614
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Apr 17, 2025 https://github.com/python/cpython/pull/132614#pullrequestreview-2774296270
View reviewed changes https://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341
AA-Turnerhttps://github.com/AA-Turner
https://github.com/python/cpython/pull/132614#pullrequestreview-2774296270
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/132614
Lib/test/support/import_helper.pyhttps://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341#diff-9164b29482098900098a8f331d75f919a81d6e8df1f3861eaacdb10967dd7257
Please reload this pagehttps://github.com/python/cpython/pull/132614
Lib/test/support/import_helper.pyhttps://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341#diff-9164b29482098900098a8f331d75f919a81d6e8df1f3861eaacdb10967dd7257
Please reload this pagehttps://github.com/python/cpython/pull/132614
Lib/test/support/import_helper.pyhttps://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341#diff-9164b29482098900098a8f331d75f919a81d6e8df1f3861eaacdb10967dd7257
Please reload this pagehttps://github.com/python/cpython/pull/132614
Lib/test/test_annotationlib.pyhttps://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341#diff-68e8ce66befd2f080ec5c1b5cc5536c8a62147a4be63211d0852468870fbeeaa
Please reload this pagehttps://github.com/python/cpython/pull/132614
Lib/test/test_typing.pyhttps://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
Please reload this pagehttps://github.com/python/cpython/pull/132614
Lib/test/test_typing.pyhttps://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
Please reload this pagehttps://github.com/python/cpython/pull/132614
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 17, 2025https://github.com/python/cpython/pull/132614#event-17298425053
https://github.com/JelleZijlstra
https://github.com/AA-Turner
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/132614/commits/a77577e3747bc91f4ca530b4cee2cb6b054a3630
a77577ehttps://github.com/python/cpython/pull/132614/commits/a77577e3747bc91f4ca530b4cee2cb6b054a3630
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
April 17, 2025 03:24https://github.com/python/cpython/pull/132614#event-17299170340
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
39ee468https://github.com/python/cpython/commit/39ee468e092eed659bfc2a4e0ce02572e0d81de0
Apr 17, 2025https://github.com/python/cpython/pull/132614#event-17299403228
Please reload this pagehttps://github.com/python/cpython/pull/132614
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Apr 17, 2025https://github.com/python/cpython/pull/132614#event-17299403543
https://github.com/danielhollas
danielhollashttps://github.com/danielhollas
Apr 27, 2025 https://github.com/python/cpython/pull/132614#ref-pullrequest-3023318012
gh-118761: Add test_lazy_import for more modules #133057 https://github.com/python/cpython/pull/133057
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%2F132614
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/python/cpython/pull/132614/files/a55b37e6c76deefc8a96bb4a718171cafd792341
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/brettcannon
brettcannon https://github.com/brettcannon
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/ncoghlan
ncoghlan https://github.com/ncoghlan
https://github.com/warsaw
warsaw https://github.com/warsaw
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/132614
https://github.com/JelleZijlstra
https://github.com/AA-Turner
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.