René's URL Explorer Experiment


Title: gh-140544: store pointer to interpreter state as a thread local for fast access by kumaraditya303 · Pull Request #140573 · python/cpython · GitHub

Open Graph Title: gh-140544: store pointer to interpreter state as a thread local for fast access by kumaraditya303 · Pull Request #140573 · python/cpython

X Title: gh-140544: store pointer to interpreter state as a thread local for fast access by kumaraditya303 · Pull Request #140573 · python/cpython

Description: Issue: Store current interpreter as a thread local variable #140544

Open Graph Description: Issue: Store current interpreter as a thread local variable #140544

X Description: Issue: Store current interpreter as a thread local variable #140544

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

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:d04bd234-d12e-e497-d5fa-fca7d207e75a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE5EA:1D778D:39B559:51A0D3:696A4DA2
html-safe-nonce27043cf0831717d4d1a7c930fc3e872d99db000f296207a1e93617c6e41fdfc3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUVBOjFENzc4RDozOUI1NTk6NTFBMEQzOjY5NkE0REEyIiwidmlzaXRvcl9pZCI6IjQxODM3MDY1MzUwMzc5MTQ1MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac613c60df6eb9ce453ca05ddc5e6ab09fe6a85ab34dd557c060ffb792506a823b
hovercard-subject-tagpull_request:2946572353
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/140573/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8a3fc9d4c4d68058f7ce10d51cfd1c52c2b57f70e5563305def278314b4f0174/python/cpython/pull/140573
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8a3fc9d4c4d68058f7ce10d51cfd1c52c2b57f70e5563305def278314b4f0174/python/cpython/pull/140573
og:image:altIssue: Store current interpreter as a thread local variable #140544
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekumaraditya303
hostnamegithub.com
expected-hostnamegithub.com
None3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef
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
release63c426b30d262aba269ef14c40e3c817b384cd61
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/140573#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140573
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%2F140573
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/140573
Reloadhttps://github.com/python/cpython/pull/140573
Reloadhttps://github.com/python/cpython/pull/140573
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/140573
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/140573
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/140573#issue-comment-box
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:interp-tlshttps://github.com/kumaraditya303/cpython/tree/interp-tls
gh-140544: store pointer to interpreter state as a thread local for fast access https://github.com/python/cpython/pull/140573#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:interp-tlshttps://github.com/kumaraditya303/cpython/tree/interp-tls
Conversation 14 https://github.com/python/cpython/pull/140573
Commits 9 https://github.com/python/cpython/pull/140573/commits
Checks 47 https://github.com/python/cpython/pull/140573/checks
Files changed 5 https://github.com/python/cpython/pull/140573/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Oct 25, 2025https://github.com/python/cpython/pull/140573#issue-3551608194
Please reload this pagehttps://github.com/python/cpython/pull/140573
Store current interpreter as a thread local variable #140544https://github.com/python/cpython/issues/140544
Please reload this pagehttps://github.com/python/cpython/pull/140573
kumaraditya303https://github.com/kumaraditya303
October 24, 2025 20:03https://github.com/python/cpython/pull/140573#commits-pushed-0ee4aba
https://github.com/kumaraditya303
use tls for interphttps://github.com/python/cpython/pull/140573/commits/0ee4abacedb1a68d0b8b5c64951b9cc88ade7f14
0ee4abahttps://github.com/python/cpython/pull/140573/commits/0ee4abacedb1a68d0b8b5c64951b9cc88ade7f14
https://github.com/kumaraditya303
use fast access for freelisthttps://github.com/python/cpython/pull/140573/commits/04318d007ab23bd208cdbdcae37ae435e9b097d4
04318d0https://github.com/python/cpython/pull/140573/commits/04318d007ab23bd208cdbdcae37ae435e9b097d4
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
ZeroIntensityhttps://github.com/ZeroIntensity
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownershttps://github.com/python/cpython/blob/d78d7a50b06c4ea10d13fc2dcb42607a97f9260c/.github/CODEOWNERS#L305
October 25, 2025 03:14https://github.com/python/cpython/pull/140573#event-20497119270
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 25, 2025 https://github.com/python/cpython/pull/140573#ref-issue-3549494301
Store current interpreter as a thread local variable #140544 https://github.com/python/cpython/issues/140544
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
Oct 25, 2025https://github.com/python/cpython/pull/140573#event-20497120291
https://github.com/kumaraditya303
cleanup 1https://github.com/python/cpython/pull/140573/commits/7115c75cb40239f68c888a42eade2cac3afa56f5
7115c75https://github.com/python/cpython/pull/140573/commits/7115c75cb40239f68c888a42eade2cac3afa56f5
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
force-pushedhttps://github.com/python/cpython/compare/428d3e09d39f1a800598ed71caccf3c4555cb8d5..7115c75cb40239f68c888a42eade2cac3afa56f5
428d3e0https://github.com/python/cpython/commit/428d3e09d39f1a800598ed71caccf3c4555cb8d5
7115c75https://github.com/python/cpython/commit/7115c75cb40239f68c888a42eade2cac3afa56f5
Compare https://github.com/python/cpython/compare/428d3e09d39f1a800598ed71caccf3c4555cb8d5..7115c75cb40239f68c888a42eade2cac3afa56f5
October 25, 2025 05:00https://github.com/python/cpython/pull/140573#event-20498274356
kumaraditya303https://github.com/kumaraditya303
October 25, 2025 10:31https://github.com/python/cpython/pull/140573#commits-pushed-c6a7f91
https://github.com/kumaraditya303
add back assertionhttps://github.com/python/cpython/pull/140573/commits/c6a7f91322205b62f8d484c4cb047a0b2f26f5a4
c6a7f91https://github.com/python/cpython/pull/140573/commits/c6a7f91322205b62f8d484c4cb047a0b2f26f5a4
https://github.com/kumaraditya303
fix buildhttps://github.com/python/cpython/pull/140573/commits/40407f7955f4383e99bd3e0645a715f0fa09c995
40407f7https://github.com/python/cpython/pull/140573/commits/40407f7955f4383e99bd3e0645a715f0fa09c995
https://github.com/kumaraditya303
fix globals checkhttps://github.com/python/cpython/pull/140573/commits/a42e9738de3572cc315e846fa3da17694a0263a9
a42e973https://github.com/python/cpython/pull/140573/commits/a42e9738de3572cc315e846fa3da17694a0263a9
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/140573/commits/a2b1487e6e5ad26038af8a2fd0bb4ea50f4df6a8
a2b1487https://github.com/python/cpython/pull/140573/commits/a2b1487e6e5ad26038af8a2fd0bb4ea50f4df6a8
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Oct 25, 2025 https://github.com/python/cpython/pull/140573#pullrequestreview-3380004588
View reviewed changes https://github.com/python/cpython/pull/140573/files/a2b1487e6e5ad26038af8a2fd0bb4ea50f4df6a8
ZeroIntensityhttps://github.com/ZeroIntensity
https://github.com/python/cpython/pull/140573#pullrequestreview-3380004588
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/140573
Misc/NEWS.d/next/Core_and_Builtins/2025-10-25-07-25-52.gh-issue-140544.lwjtQe.rsthttps://github.com/python/cpython/pull/140573/files/a2b1487e6e5ad26038af8a2fd0bb4ea50f4df6a8#diff-9b9e655bf2ca6184e25a50c4e17ec621a0834a14d7ad25cd26acbc196b1eaa04
Please reload this pagehttps://github.com/python/cpython/pull/140573
Python/pystate.chttps://github.com/python/cpython/pull/140573/files/a2b1487e6e5ad26038af8a2fd0bb4ea50f4df6a8#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
Please reload this pagehttps://github.com/python/cpython/pull/140573
Include/internal/pycore_pystate.hhttps://github.com/python/cpython/pull/140573/files/a2b1487e6e5ad26038af8a2fd0bb4ea50f4df6a8#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83
Please reload this pagehttps://github.com/python/cpython/pull/140573
kumaraditya303https://github.com/kumaraditya303
October 25, 2025 19:26https://github.com/python/cpython/pull/140573#commits-pushed-2b3d15a
https://github.com/kumaraditya303
reviewhttps://github.com/python/cpython/pull/140573/commits/2b3d15a785b40fa7427b40dcaa2792fd4f227e45
2b3d15ahttps://github.com/python/cpython/pull/140573/commits/2b3d15a785b40fa7427b40dcaa2792fd4f227e45
https://github.com/kumaraditya303
improve commenthttps://github.com/python/cpython/pull/140573/commits/2dc93d3a07cdd701cac8ca36eafe56e73d14480a
2dc93d3https://github.com/python/cpython/pull/140573/commits/2dc93d3a07cdd701cac8ca36eafe56e73d14480a
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Oct 25, 2025 https://github.com/python/cpython/pull/140573#pullrequestreview-3380026055
View reviewed changes https://github.com/python/cpython/pull/140573/files/2dc93d3a07cdd701cac8ca36eafe56e73d14480a
ZeroIntensityhttps://github.com/ZeroIntensity
https://github.com/python/cpython/pull/140573#pullrequestreview-3380026055
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/140573
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
Oct 25, 2025https://github.com/python/cpython/pull/140573#event-20502850642
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
ef4665fhttps://github.com/python/cpython/commit/ef4665f9184784ecc7a5084a41d62577a3d338cb
Oct 25, 2025https://github.com/python/cpython/pull/140573#event-20502896324
Please reload this pagehttps://github.com/python/cpython/pull/140573
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
Oct 25, 2025https://github.com/python/cpython/pull/140573#event-20502896511
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
October 25, 2025 14:26https://github.com/python/cpython/pull/140573#event-20502896663
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Oct 26, 2025 https://github.com/python/cpython/pull/140573#pullrequestreview-3381026424
View reviewed changes https://github.com/python/cpython/pull/140573/files/2dc93d3a07cdd701cac8ca36eafe56e73d14480a
Include/internal/pycore_pystate.hhttps://github.com/python/cpython/pull/140573/files/2dc93d3a07cdd701cac8ca36eafe56e73d14480a#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83
cdce8phttps://github.com/cdce8p
Oct 26, 2025https://github.com/python/cpython/pull/140573#discussion_r2463754792
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/140573
kumaraditya303https://github.com/kumaraditya303
Oct 26, 2025https://github.com/python/cpython/pull/140573#discussion_r2463774047
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#140623https://github.com/python/cpython/pull/140623
Please reload this pagehttps://github.com/python/cpython/pull/140573
ZeroIntensityhttps://github.com/ZeroIntensity
Oct 26, 2025https://github.com/python/cpython/pull/140573#discussion_r2463824477
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/140573
cdce8phttps://github.com/cdce8p
Oct 26, 2025https://github.com/python/cpython/pull/140573#discussion_r2463827975
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#140623https://github.com/python/cpython/pull/140623
Please reload this pagehttps://github.com/python/cpython/pull/140573
StanFromIrelandhttps://github.com/StanFromIreland
Dec 6, 2025 https://github.com/python/cpython/pull/140573#ref-commit-4c3c087
https://github.com/kumaraditya303
https://github.com/StanFromIreland
pythongh-140544https://github.com/python/cpython/issues/140544
: store pointer to interpreter state as a thread local…https://github.com/StanFromIreland/cpython/commit/4c3c087807ec969b62007ddcb076291fdc0b3291
4c3c087https://github.com/StanFromIreland/cpython/commit/4c3c087807ec969b62007ddcb076291fdc0b3291
python#140573https://github.com/python/cpython/pull/140573
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%2F140573
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
https://github.com/python/cpython/pull/140573/files/2dc93d3a07cdd701cac8ca36eafe56e73d14480a
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/cdce8p
cdce8p https://github.com/cdce8p
https://github.com/python/cpython/pull/140573/files/2dc93d3a07cdd701cac8ca36eafe56e73d14480a
Please reload this pagehttps://github.com/python/cpython/pull/140573
https://github.com/kumaraditya303
https://github.com/cdce8p
https://github.com/ZeroIntensity
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.