René's URL Explorer Experiment


Title: gh-118761: Improve import time by lazy import of `warnings` by donbarbos · Pull Request #129765 · python/cpython · GitHub

Open Graph Title: gh-118761: Improve import time by lazy import of `warnings` by donbarbos · Pull Request #129765 · python/cpython

X Title: gh-118761: Improve import time by lazy import of `warnings` by donbarbos · Pull Request #129765 · python/cpython

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

Open Graph Description: Improve import time modules by lazy import warnings. Remove unused warnings and struct from Lib/ctypes/_layout.py. My hyperfine benchmarks: First experiment in Main branch ➜ cpython git:(43e0240...

X Description: Improve import time modules by lazy import warnings. Remove unused warnings and struct from Lib/ctypes/_layout.py. My hyperfine benchmarks: First experiment in Main branch ➜ cpython git:(43e0240...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:e50d7464-1ffc-ee55-0f43-1d0cc0994eff
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93A4:366DBA:10BAB9C:165C1BC:696993EA
html-safe-noncecc871e219663b290041a9e53cd85d18ce5750a0b21700ce1d82cb9a464abe1ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0E0OjM2NkRCQToxMEJBQjlDOjE2NUMxQkM6Njk2OTkzRUEiLCJ2aXNpdG9yX2lkIjoiMzMwNzA3NjkzOTM5MzExMTAxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac96672d962048e19c4cf79d6cc32d547fdb992aad81a58e3944a540cd1527e4a8
hovercard-subject-tagpull_request:2321324391
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/129765/commits
twitter:imagehttps://opengraph.githubassets.com/547989060b4db0a8ec7970bc33283816a62db316e4974584548bc8bb0d9f7b38/python/cpython/pull/129765
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/547989060b4db0a8ec7970bc33283816a62db316e4974584548bc8bb0d9f7b38/python/cpython/pull/129765
og:image:altImprove import time modules by lazy import warnings. Remove unused warnings and struct from Lib/ctypes/_layout.py. My hyperfine benchmarks: First experiment in Main branch ➜ cpython git:(43e0240...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedonbarbos
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/129765/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129765%2Fcommits
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%2F129765%2Fcommits
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/129765/commits
Reloadhttps://github.com/python/cpython/pull/129765/commits
Reloadhttps://github.com/python/cpython/pull/129765/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/129765/commits
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/129765/commits
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
donbarboshttps://github.com/donbarbos
python:mainhttps://github.com/python/cpython/tree/main
donbarbos:issue-118761https://github.com/donbarbos/cpython/tree/issue-118761
Conversationhttps://github.com/python/cpython/pull/129765
Commits9 (9)https://github.com/python/cpython/pull/129765/commits
Checkshttps://github.com/python/cpython/pull/129765/checks
Files changedhttps://github.com/python/cpython/pull/129765/files
gh-118761: Improve import time by lazy import of warningshttps://github.com/python/cpython/pull/129765/commits#top
donbarboshttps://github.com/donbarbos
python:mainhttps://github.com/python/cpython/tree/main
donbarbos:issue-118761https://github.com/donbarbos/cpython/tree/issue-118761
Improve import time of codeophttps://github.com/python/cpython/pull/129765/commits/acaa51cb814894b05a4ac5c770a4d18205a8149b
https://github.com/donbarbos
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
acaa51chttps://github.com/python/cpython/pull/129765/commits/acaa51cb814894b05a4ac5c770a4d18205a8149b
https://github.com/python/cpython/tree/acaa51cb814894b05a4ac5c770a4d18205a8149b
Always lazy import warningshttps://github.com/python/cpython/pull/129765/commits/ca2f8bc056752a1ae318d60fc7242703314d4838
https://github.com/donbarbos
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
ca2f8bchttps://github.com/python/cpython/pull/129765/commits/ca2f8bc056752a1ae318d60fc7242703314d4838
https://github.com/python/cpython/tree/ca2f8bc056752a1ae318d60fc7242703314d4838
Merge branch 'main' into issue-118761https://github.com/python/cpython/pull/129765/commits/4c9fa2372e353d54aeaab3c71c65957c701d1d57
https://github.com/donbarbos
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
4c9fa23https://github.com/python/cpython/pull/129765/commits/4c9fa2372e353d54aeaab3c71c65957c701d1d57
https://github.com/python/cpython/tree/4c9fa2372e353d54aeaab3c71c65957c701d1d57
Update Misc/NEWS.d/next/Library/2025-02-07-05-55-08.gh-issue-118761.aayL_A.rsthttps://github.com/python/cpython/pull/129765/commits/f88c5b15a967e1a93d0af49d1fc1b8ba518c33cc
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
Wulian233https://github.com/python/cpython/commits?author=Wulian233
f88c5b1https://github.com/python/cpython/pull/129765/commits/f88c5b15a967e1a93d0af49d1fc1b8ba518c33cc
https://github.com/python/cpython/tree/f88c5b15a967e1a93d0af49d1fc1b8ba518c33cc
Correct my mistakehttps://github.com/python/cpython/pull/129765/commits/f1f77a57b67ab0c16de2e46c9cfeb0af1f2f22b9
https://github.com/donbarbos
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
f1f77a5https://github.com/python/cpython/pull/129765/commits/f1f77a57b67ab0c16de2e46c9cfeb0af1f2f22b9
https://github.com/python/cpython/tree/f1f77a57b67ab0c16de2e46c9cfeb0af1f2f22b9
Update 2025-02-07-05-55-08.gh-issue-118761.aayL_A.rsthttps://github.com/python/cpython/pull/129765/commits/6210539e3c3b12c636b82b938cf84fe010ea860c
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
vsajiphttps://github.com/python/cpython/commits?author=vsajip
6210539https://github.com/python/cpython/pull/129765/commits/6210539e3c3b12c636b82b938cf84fe010ea860c
https://github.com/python/cpython/tree/6210539e3c3b12c636b82b938cf84fe010ea860c
Revert changing styleshttps://github.com/python/cpython/pull/129765/commits/212a25fe865ea3c6c4fa622dc8d1d6b28450aaf4
https://github.com/donbarbos
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
212a25fhttps://github.com/python/cpython/pull/129765/commits/212a25fe865ea3c6c4fa622dc8d1d6b28450aaf4
https://github.com/python/cpython/tree/212a25fe865ea3c6c4fa622dc8d1d6b28450aaf4
Revert morehttps://github.com/python/cpython/pull/129765/commits/e976ca07c6c86b29145627e979fb600953ca88ce
https://github.com/donbarbos
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
e976ca0https://github.com/python/cpython/pull/129765/commits/e976ca07c6c86b29145627e979fb600953ca88ce
https://github.com/python/cpython/tree/e976ca07c6c86b29145627e979fb600953ca88ce
Add suggestionshttps://github.com/python/cpython/pull/129765/commits/3e7f0ad43314ad38ac527b333d7c78cae5a3e2bc
https://github.com/donbarbos
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
3e7f0adhttps://github.com/python/cpython/pull/129765/commits/3e7f0ad43314ad38ac527b333d7c78cae5a3e2bc
https://github.com/python/cpython/tree/3e7f0ad43314ad38ac527b333d7c78cae5a3e2bc
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.