René's URL Explorer Experiment


Title: gh-140544: Always assume that thread locals are available by ZeroIntensity · Pull Request #140690 · python/cpython · GitHub

Open Graph Title: gh-140544: Always assume that thread locals are available by ZeroIntensity · Pull Request #140690 · python/cpython

X Title: gh-140544: Always assume that thread locals are available by ZeroIntensity · Pull Request #140690 · python/cpython

Description: Python has required thread local support since 3.12. By assuming that thread locals are always supported, we can improve the performance of third-party extensions by allowing them to access the att...

Open Graph Description: Python has required thread local support since 3.12. By assuming that thread locals are always supported, we can improve the performance of third-party extensions by allowing them to access the att...

X Description: Python has required thread local support since 3.12. By assuming that thread locals are always supported, we can improve the performance of third-party extensions by allowing them to access the att...

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

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:890b564f-bc13-3f14-800b-d5d3ea0a0183
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id84F0:31BD8E:33C37:4918F:696A01FD
html-safe-nonce79308b3a563b08ee391c728fdf28ec7c4f3a0c670741206e2616c2bb633ebc33
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEYwOjMxQkQ4RTozM0MzNzo0OTE4Rjo2OTZBMDFGRCIsInZpc2l0b3JfaWQiOiI3MzAxMzYwMTI0ODI1MzA1NTk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfcfed67cddb227762b42180e8f5a67117be34b1ffb7c0f35e8dcf3772647a89d
hovercard-subject-tagpull_request:2952901444
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/140690/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b4a6580ca4e444e6d36e1beab02798a084805b7cb398a95655d44a2d1e5ec891/python/cpython/pull/140690
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b4a6580ca4e444e6d36e1beab02798a084805b7cb398a95655d44a2d1e5ec891/python/cpython/pull/140690
og:image:altPython has required thread local support since 3.12. By assuming that thread locals are always supported, we can improve the performance of third-party extensions by allowing them to access the att...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameZeroIntensity
hostnamegithub.com
expected-hostnamegithub.com
None578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc
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
release671c2f67171dbced24284331f3133a613d08c366
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/140690#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140690
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%2F140690
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/140690
Reloadhttps://github.com/python/cpython/pull/140690
Reloadhttps://github.com/python/cpython/pull/140690
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/140690
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/140690
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/140690#issue-comment-box
ZeroIntensityhttps://github.com/ZeroIntensity
python:mainhttps://github.com/python/cpython/tree/main
ZeroIntensity:remove-have-thread-localhttps://github.com/ZeroIntensity/cpython/tree/remove-have-thread-local
gh-140544: Always assume that thread locals are available https://github.com/python/cpython/pull/140690#top
ZeroIntensityhttps://github.com/ZeroIntensity
python:mainhttps://github.com/python/cpython/tree/main
ZeroIntensity:remove-have-thread-localhttps://github.com/ZeroIntensity/cpython/tree/remove-have-thread-local
Conversation 14 https://github.com/python/cpython/pull/140690
Commits 7 https://github.com/python/cpython/pull/140690/commits
Checks 46 https://github.com/python/cpython/pull/140690/checks
Files changed 3 https://github.com/python/cpython/pull/140690/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Oct 27, 2025https://github.com/python/cpython/pull/140690#issue-3558900995
Please reload this pagehttps://github.com/python/cpython/pull/140690
required thread local supporthttps://github.com/python/cpython/pull/103324
@cdce8phttps://github.com/cdce8p
Store current interpreter as a thread local variable #140544https://github.com/python/cpython/issues/140544
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/ZeroIntensity
Always assume the HAVE_THREAD_LOCAL macro is defined.https://github.com/python/cpython/pull/140690/commits/977e50a8e4307a5e63b1f03847378f667fb376cc
977e50ahttps://github.com/python/cpython/pull/140690/commits/977e50a8e4307a5e63b1f03847378f667fb376cc
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
brettcannonhttps://github.com/brettcannon
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
kumaraditya303https://github.com/kumaraditya303
ncoghlanhttps://github.com/ncoghlan
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/f5394c257ce4118394fe5ff561a2b0ad238a8d65/.github/CODEOWNERS#L255
October 27, 2025 22:36https://github.com/python/cpython/pull/140690#event-20537721513
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Oct 27, 2025https://github.com/python/cpython/pull/140690#event-20537721584
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 27, 2025 https://github.com/python/cpython/pull/140690#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 27, 2025https://github.com/python/cpython/pull/140690#event-20537722795
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Oct 27, 2025https://github.com/python/cpython/pull/140690#event-20537743317
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Oct 27, 2025https://github.com/python/cpython/pull/140690#issuecomment-3453643576
Please reload this pagehttps://github.com/python/cpython/pull/140690
earlierhttps://github.com/python/cpython/pull/140623#issuecomment-3453465921
https://github.com/python/mypy/blob/v1.18.2/mypyc/lib-rt/pythonsupport.h#L16-L18https://github.com/python/mypy/blob/v1.18.2/mypyc/lib-rt/pythonsupport.h#L16-L18
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Oct 27, 2025https://github.com/python/cpython/pull/140690#issuecomment-3453655006
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Oct 27, 2025https://github.com/python/cpython/pull/140690#issuecomment-3453657562
Please reload this pagehttps://github.com/python/cpython/pull/140690
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Oct 27, 2025https://github.com/python/cpython/pull/140690#issuecomment-3453667426
cpython/Include/internal/pycore_mimalloc.hhttps://github.com/python/cpython/blob/f5394c257ce4118394fe5ff561a2b0ad238a8d65/Include/internal/pycore_mimalloc.h#L4-L6
f5394c2https://github.com/python/cpython/commit/f5394c257ce4118394fe5ff561a2b0ad238a8d65
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/ZeroIntensity
Move _Py_thread_local to pycore_pystate.hhttps://github.com/python/cpython/pull/140690/commits/81b721787d82531945059050380899f8129a33d4
81b7217https://github.com/python/cpython/pull/140690/commits/81b721787d82531945059050380899f8129a33d4
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Oct 27, 2025https://github.com/python/cpython/pull/140690#issuecomment-3453681062
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Oct 27, 2025https://github.com/python/cpython/pull/140690#issuecomment-3453732870
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Oct 28, 2025 https://github.com/python/cpython/pull/140690#pullrequestreview-3386517480
View reviewed changes https://github.com/python/cpython/pull/140690/files/81b721787d82531945059050380899f8129a33d4
Include/pyport.hhttps://github.com/python/cpython/pull/140690/files/81b721787d82531945059050380899f8129a33d4#diff-4832eab2bfe1a8edc0ca7d7661126bd69d8f4e41916624e3ed48389b6ced6b02
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/ZeroIntensity
Remove Py_BUILD_CORE check in pyport.hhttps://github.com/python/cpython/pull/140690/commits/823f0e89b78c864db8fdb6757f7ce1bfb22b6082
823f0e8https://github.com/python/cpython/pull/140690/commits/823f0e89b78c864db8fdb6757f7ce1bfb22b6082
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Oct 28, 2025 https://github.com/python/cpython/pull/140690#pullrequestreview-3388524677
View reviewed changes https://github.com/python/cpython/pull/140690/files/823f0e89b78c864db8fdb6757f7ce1bfb22b6082
Include/internal/pycore_pystate.hhttps://github.com/python/cpython/pull/140690/files/823f0e89b78c864db8fdb6757f7ce1bfb22b6082#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83
Please reload this pagehttps://github.com/python/cpython/pull/140690
ZeroIntensityhttps://github.com/ZeroIntensity
October 28, 2025 08:33https://github.com/python/cpython/pull/140690#commits-pushed-b2dde90
https://github.com/ZeroIntensity
Remove _Py_thread_local macro definitionhttps://github.com/python/cpython/pull/140690/commits/b2dde90f79579ac44b1fc6b2a19e01897a644f98
b2dde90https://github.com/python/cpython/pull/140690/commits/b2dde90f79579ac44b1fc6b2a19e01897a644f98
https://github.com/ZeroIntensity
Move back to pyport.hhttps://github.com/python/cpython/pull/140690/commits/bb61072927e329268dec28c8c943b9d3a1e09924
bb61072https://github.com/python/cpython/pull/140690/commits/bb61072927e329268dec28c8c943b9d3a1e09924
https://github.com/ZeroIntensity
Move definition of _Py_thread_local back to pyport.hhttps://github.com/python/cpython/pull/140690/commits/2c70a9695fec8212bf6eda7386fc3173d52f4c21
2c70a96https://github.com/python/cpython/pull/140690/commits/2c70a9695fec8212bf6eda7386fc3173d52f4c21
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Oct 28, 2025 https://github.com/python/cpython/pull/140690#pullrequestreview-3388564700
View reviewed changes https://github.com/python/cpython/pull/140690/files/2c70a9695fec8212bf6eda7386fc3173d52f4c21
Include/internal/pycore_pystate.hhttps://github.com/python/cpython/pull/140690/files/2c70a9695fec8212bf6eda7386fc3173d52f4c21#diff-76818a128869986e3de4f16dae0257c430008546f04764cd7ad8254abfa5ce83
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/ZeroIntensity
Fix stray newline changehttps://github.com/python/cpython/pull/140690/commits/5c85aefecad9909202535f94ecd333b188a94ec6
5c85aefhttps://github.com/python/cpython/pull/140690/commits/5c85aefecad9909202535f94ecd333b188a94ec6
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Oct 28, 2025https://github.com/python/cpython/pull/140690#issuecomment-3456287683
@cdce8phttps://github.com/cdce8p
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Oct 28, 2025https://github.com/python/cpython/pull/140690#issuecomment-3456335276
@cdce8phttps://github.com/cdce8p
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Oct 28, 2025 https://github.com/python/cpython/pull/140690#pullrequestreview-3388647920
View reviewed changes https://github.com/python/cpython/pull/140690/files/5c85aefecad9909202535f94ecd333b188a94ec6
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 28, 2025https://github.com/python/cpython/pull/140690#event-20553289127
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
2cefa70https://github.com/python/cpython/commit/2cefa70eb92321c39f7d66bd862b2f66cd06f0fa
Oct 28, 2025https://github.com/python/cpython/pull/140690#event-20553472983
Please reload this pagehttps://github.com/python/cpython/pull/140690
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
October 28, 2025 13:07https://github.com/python/cpython/pull/140690#event-20553473528
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 28, 2025https://github.com/python/cpython/pull/140690#event-20553474144
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Oct 30, 2025 https://github.com/python/cpython/pull/140690#ref-pullrequest-3271477768
gh-131253: free-threaded build support for pystats #137189 https://github.com/python/cpython/pull/137189
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
Dec 1, 2025 https://github.com/python/cpython/pull/140690#ref-issue-3683235562
python.h setting HAVE_THREAD_LOCAL breaks numpy build #142163 https://github.com/python/cpython/issues/142163
StanFromIrelandhttps://github.com/StanFromIreland
Dec 6, 2025 https://github.com/python/cpython/pull/140690#ref-commit-32d3fc5
https://github.com/ZeroIntensity
https://github.com/StanFromIreland
pythongh-140544https://github.com/python/cpython/issues/140544
: Always assume that thread locals are available (https://github.com/StanFromIreland/cpython/commit/32d3fc5715d4e86fcf1592c5fee96830374c6f8e
pyth…https://github.com/python/cpython/pull/140690
32d3fc5https://github.com/StanFromIreland/cpython/commit/32d3fc5715d4e86fcf1592c5fee96830374c6f8e
…onGH-140690https://github.com/python/cpython/pull/140690
pythonGH-103324https://github.com/python/cpython/pull/103324
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%2F140690
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/140690/files/5c85aefecad9909202535f94ecd333b188a94ec6
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/brettcannon
brettcannon https://github.com/brettcannon
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/140690
https://github.com/ZeroIntensity
https://github.com/cdce8p
https://github.com/kumaraditya303
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.