René's URL Explorer Experiment


Title: gh-65961: Deprecate `__cached__` by brettcannon · Pull Request #97990 · python/cpython · GitHub

Open Graph Title: gh-65961: Deprecate `__cached__` by brettcannon · Pull Request #97990 · python/cpython

X Title: gh-65961: Deprecate `__cached__` by brettcannon · Pull Request #97990 · python/cpython

Description: Rely on __spec__.cached in all cases. Issue: update the import machinery to only use __spec__ #65961

Open Graph Description: Rely on __spec__.cached in all cases. Issue: update the import machinery to only use __spec__ #65961

X Description: Rely on __spec__.cached in all cases. Issue: update the import machinery to only use __spec__ #65961

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

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:e806e6e1-8bb5-9971-6386-11967ce4d9c8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD4B2:169ED8:185E4CE:209B04F:6969BD79
html-safe-nonceb5a2a5ccc25110d73219ef0983b8bc6238cc03f5985d848314126278dc0cd95f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEIyOjE2OUVEODoxODVFNENFOjIwOUIwNEY6Njk2OUJENzkiLCJ2aXNpdG9yX2lkIjoiODc5MzQyNzU5NzMzNzQxMDkzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac760a25a6daefdf86e7f7c1bc3dd9749e9a45c8d19d7172f4ad3aae66da230e85
hovercard-subject-tagpull_request:1079510658
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/97990/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9b9b1133780b05d97b84772ab5dbf67d79825b84f13e93204fd7ca85de8a887a/python/cpython/pull/97990
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9b9b1133780b05d97b84772ab5dbf67d79825b84f13e93204fd7ca85de8a887a/python/cpython/pull/97990
og:image:altRely on __spec__.cached in all cases. Issue: update the import machinery to only use __spec__ #65961
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrettcannon
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/97990#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F97990
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%2F97990
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/97990
Reloadhttps://github.com/python/cpython/pull/97990
Reloadhttps://github.com/python/cpython/pull/97990
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/97990
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/97990
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/97990#issue-comment-box
brettcannonhttps://github.com/brettcannon
python:mainhttps://github.com/python/cpython/tree/main
brettcannon:deprecate-__cached__https://github.com/brettcannon/cpython/tree/deprecate-__cached__
gh-65961: Deprecate __cached__ https://github.com/python/cpython/pull/97990#top
brettcannonhttps://github.com/brettcannon
python:mainhttps://github.com/python/cpython/tree/main
brettcannon:deprecate-__cached__https://github.com/brettcannon/cpython/tree/deprecate-__cached__
Conversation 0 https://github.com/python/cpython/pull/97990
Commits 9 https://github.com/python/cpython/pull/97990/commits
Checks 0 https://github.com/python/cpython/pull/97990/checks
Files changed https://github.com/python/cpython/pull/97990/files
Please reload this pagehttps://github.com/python/cpython/pull/97990
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
Oct 6, 2022https://github.com/python/cpython/pull/97990#issue-1400203878
Please reload this pagehttps://github.com/python/cpython/pull/97990
update the import machinery to only use __spec__ #65961https://github.com/python/cpython/issues/65961
Please reload this pagehttps://github.com/python/cpython/pull/97990
brettcannonhttps://github.com/brettcannon
October 6, 2022 10:58https://github.com/python/cpython/pull/97990#commits-pushed-139c8ce
https://github.com/brettcannon
pythongh-65961https://github.com/python/cpython/issues/65961
: do not rely solely onhttps://github.com/python/cpython/pull/97990/commits/139c8ceaa9209d0034d03925a94f1c80e1717f04
__cached__https://github.com/python/cpython/pull/97990/commits/139c8ceaa9209d0034d03925a94f1c80e1717f04
139c8cehttps://github.com/python/cpython/pull/97990/commits/139c8ceaa9209d0034d03925a94f1c80e1717f04
https://github.com/brettcannon
Add a news entryhttps://github.com/python/cpython/pull/97990/commits/b1c4e2a0b2166c02416315e1e5ef319fbb51b338
b1c4e2ahttps://github.com/python/cpython/pull/97990/commits/b1c4e2a0b2166c02416315e1e5ef319fbb51b338
https://github.com/brettcannon
Update What's Newhttps://github.com/python/cpython/pull/97990/commits/2541729184ed35b3203748445873ae06b4198e15
2541729https://github.com/python/cpython/pull/97990/commits/2541729184ed35b3203748445873ae06b4198e15
https://github.com/brettcannon
Merge branch 'main' ofhttps://github.com/python/cpython/pull/97990/commits/2d4ad1da996c25e73f509f6a8a6a05df72c2257d
https://github.com/python/cpythonhttps://github.com/python/cpython
into depreca…https://github.com/python/cpython/pull/97990/commits/2d4ad1da996c25e73f509f6a8a6a05df72c2257d
2d4ad1dhttps://github.com/python/cpython/pull/97990/commits/2d4ad1da996c25e73f509f6a8a6a05df72c2257d
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
warsawhttps://github.com/warsaw
October 6, 2022 19:36https://github.com/python/cpython/pull/97990#event-7538125887
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 6, 2022https://github.com/python/cpython/pull/97990#event-7538126208
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
Oct 6, 2022 https://github.com/python/cpython/pull/97990#ref-issue-1198922271
update the import machinery to only use __spec__ #65961 https://github.com/python/cpython/issues/65961
brettcannonhttps://github.com/brettcannon
October 6, 2022 13:43https://github.com/python/cpython/pull/97990#commits-pushed-e1269dc
https://github.com/brettcannon
Merge branch 'main' into deprecate-__cached__https://github.com/python/cpython/pull/97990/commits/e1269dce9efa7ba71cdbfc18c65221c4a494920f
e1269dchttps://github.com/python/cpython/pull/97990/commits/e1269dce9efa7ba71cdbfc18c65221c4a494920f
https://github.com/brettcannon
Link to ModuleSpec in versionchanged noticeshttps://github.com/python/cpython/pull/97990/commits/e8f74e40e90aaeffe8d8caa0ebc3e6fdb38001fc
e8f74e4https://github.com/python/cpython/pull/97990/commits/e8f74e40e90aaeffe8d8caa0ebc3e6fdb38001fc
https://github.com/brettcannon
Merge branch 'deprecate-__cached__' ofhttps://github.com/python/cpython/pull/97990/commits/3e88550db437136252d6a846e709ab2626cacfc7
https://github.com/brettcannon…https://github.com/brettcannon/cpython
3e88550https://github.com/python/cpython/pull/97990/commits/3e88550db437136252d6a846e709ab2626cacfc7
…/cpythonhttps://github.com/brettcannon/cpython
https://github.com/brettcannon
Merge branch 'main' into deprecate-__cached__https://github.com/python/cpython/pull/97990/commits/5fd8b61abafa7876ccd1147cfa50d4fe0cec1dbc
5fd8b61https://github.com/python/cpython/pull/97990/commits/5fd8b61abafa7876ccd1147cfa50d4fe0cec1dbc
https://github.com/warsaw
warsawhttps://github.com/warsaw
Oct 6, 2022 https://github.com/python/cpython/pull/97990#pullrequestreview-1133632660
View reviewed changes https://github.com/python/cpython/pull/97990/files/5fd8b61abafa7876ccd1147cfa50d4fe0cec1dbc
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
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
Oct 6, 2022https://github.com/python/cpython/pull/97990#event-7538652208
https://github.com/brettcannon
Merge branch 'main' into deprecate-__cached__https://github.com/python/cpython/pull/97990/commits/f9f03d81968a8cc6e858b0505dd77f63d1834783
f9f03d8https://github.com/python/cpython/pull/97990/commits/f9f03d81968a8cc6e858b0505dd77f63d1834783
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
e1c4d56https://github.com/python/cpython/commit/e1c4d56fdde28728c37de855edbb463fa0d7f95d
Oct 6, 2022https://github.com/python/cpython/pull/97990#event-7539133779
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
October 6, 2022 22:40https://github.com/python/cpython/pull/97990#event-7539133833
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Oct 6, 2022https://github.com/python/cpython/pull/97990#event-7539134084
carljmhttps://github.com/carljm
Oct 6, 2022 https://github.com/python/cpython/pull/97990#ref-commit-e5d2169
https://github.com/carljm
Merge branch 'main' into dictwatchhttps://github.com/carljm/cpython/commit/e5d21693de54c37116e644af52fa5fa638b0c583
e5d2169https://github.com/carljm/cpython/commit/e5d21693de54c37116e644af52fa5fa638b0c583
pythongh-96078https://github.com/python/cpython/issues/96078
pythongh-97965https://github.com/python/cpython/pull/97965
pythongh-65961https://github.com/python/cpython/issues/65961
pythonGH-97990https://github.com/python/cpython/pull/97990
pythongh-97850https://github.com/python/cpython/issues/97850
python#97935https://github.com/python/cpython/pull/97935
pythonGH-97992https://github.com/python/cpython/pull/97992
pythongh-94590https://github.com/python/cpython/issues/94590
python#94591https://github.com/python/cpython/pull/94591
python#97974https://github.com/python/cpython/pull/97974
pythongh-97781https://github.com/python/cpython/issues/97781
pythonGH-97785https://github.com/python/cpython/pull/97785
pythongh-86482https://github.com/python/cpython/issues/86482
python#23291https://github.com/python/cpython/pull/23291
pythongh-97943https://github.com/python/cpython/issues/97943
python#97949https://github.com/python/cpython/pull/97949
pythongh-94808https://github.com/python/cpython/issues/94808
python#95926https://github.com/python/cpython/pull/95926
carljmhttps://github.com/carljm
Oct 8, 2022 https://github.com/python/cpython/pull/97990#ref-commit-415ed49
https://github.com/carljm
Merge branch 'main' into typewatchhttps://github.com/carljm/cpython/commit/415ed492de0dc27707962eb1756cf183dadd0885
415ed49https://github.com/carljm/cpython/commit/415ed492de0dc27707962eb1756cf183dadd0885
pythonGH-97002https://github.com/python/cpython/issues/97002
pythonGH-97996https://github.com/python/cpython/pull/97996
pythongh-97973https://github.com/python/cpython/issues/97973
pythonGH-97984https://github.com/python/cpython/pull/97984
pythongh-96078https://github.com/python/cpython/issues/96078
pythongh-97965https://github.com/python/cpython/pull/97965
pythongh-65961https://github.com/python/cpython/issues/65961
pythonGH-97990https://github.com/python/cpython/pull/97990
pythongh-97850https://github.com/python/cpython/issues/97850
python#97935https://github.com/python/cpython/pull/97935
pythonGH-97992https://github.com/python/cpython/pull/97992
pythongh-94590https://github.com/python/cpython/issues/94590
python#94591https://github.com/python/cpython/pull/94591
python#97974https://github.com/python/cpython/pull/97974
pythongh-97781https://github.com/python/cpython/issues/97781
pythonGH-97785https://github.com/python/cpython/pull/97785
pythongh-86482https://github.com/python/cpython/issues/86482
python#23291https://github.com/python/cpython/pull/23291
pythongh-97943https://github.com/python/cpython/issues/97943
python#97949https://github.com/python/cpython/pull/97949
mpagehttps://github.com/mpage
Oct 11, 2022 https://github.com/python/cpython/pull/97990#ref-commit-7064cd5
https://github.com/brettcannon
https://github.com/mpage
pythongh-65961https://github.com/python/cpython/issues/65961
: Do not rely solely onhttps://github.com/mpage/cpython/commit/7064cd5057d1f6fee44c1e2553066a7aaa3c99da
__cached__https://github.com/mpage/cpython/commit/7064cd5057d1f6fee44c1e2553066a7aaa3c99da
(https://github.com/mpage/cpython/commit/7064cd5057d1f6fee44c1e2553066a7aaa3c99da
pythonGH-97990https://github.com/python/cpython/pull/97990
)https://github.com/mpage/cpython/commit/7064cd5057d1f6fee44c1e2553066a7aaa3c99da
7064cd5https://github.com/mpage/cpython/commit/7064cd5057d1f6fee44c1e2553066a7aaa3c99da
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%2F97990
https://github.com/warsaw
warsaw https://github.com/warsaw
https://github.com/python/cpython/pull/97990/files/5fd8b61abafa7876ccd1147cfa50d4fe0cec1dbc
Please reload this pagehttps://github.com/python/cpython/pull/97990
https://github.com/brettcannon
https://github.com/warsaw
https://github.com/bedevere-bot
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.