René's URL Explorer Experiment


Title: gh-128555: Add 'context' keyword parameter to Thread. by nascheme · Pull Request #128209 · python/cpython · GitHub

Open Graph Title: gh-128555: Add 'context' keyword parameter to Thread. by nascheme · Pull Request #128209 · python/cpython

X Title: gh-128555: Add 'context' keyword parameter to Thread. by nascheme · Pull Request #128209 · python/cpython

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

Open Graph Description: Edit: this PR has been revised to make the behavior dependent on the build of Python used. The free-threaded build defaults to inheriting the context of the caller of Thread.start(). The default ...

X Description: Edit: this PR has been revised to make the behavior dependent on the build of Python used. The free-threaded build defaults to inheriting the context of the caller of Thread.start(). The default ...

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

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:7e1e56f1-37fe-1d94-68ef-faa1fed3017f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id825E:1B675D:1D63E:26818:6A52DC13
html-safe-nonce6f882f4d4282dab09581faed9def8f0853e940f169ce1ee1da2b43cf6f14c11b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjVFOjFCNjc1RDoxRDYzRToyNjgxODo2QTUyREMxMyIsInZpc2l0b3JfaWQiOiI1NjIyNTMzNjA1ODQ4OTY0MTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8192d6e766ec7b944fa97d45078cdb3b592bbda8cb343d70fbdf06b42efde4ad
hovercard-subject-tagpull_request:2250266251
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/128209/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5802e06369298287074c983ee94474a9f97ba33459000121b3a43f2689e223fe/python/cpython/pull/128209
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5802e06369298287074c983ee94474a9f97ba33459000121b3a43f2689e223fe/python/cpython/pull/128209
og:image:altEdit: this PR has been revised to make the behavior dependent on the build of Python used. The free-threaded build defaults to inheriting the context of the caller of Thread.start(). The default ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenascheme
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/128209#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128209
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F128209
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/128209
Reloadhttps://github.com/python/cpython/pull/128209
Reloadhttps://github.com/python/cpython/pull/128209
Please reload this pagehttps://github.com/python/cpython/pull/128209
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/128209
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:thread_inherit_contexthttps://github.com/nascheme/cpython/tree/thread_inherit_context
Conversationhttps://github.com/python/cpython/pull/128209
Commits9 (9)https://github.com/python/cpython/pull/128209/commits
Checkshttps://github.com/python/cpython/pull/128209/checks
Files changedhttps://github.com/python/cpython/pull/128209/files
gh-128555: Add 'context' keyword parameter to Thread.https://github.com/python/cpython/pull/128209#top
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:thread_inherit_contexthttps://github.com/nascheme/cpython/tree/thread_inherit_context
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 24, 2024https://github.com/python/cpython/pull/128209#issue-2756921635
Please reload this pagehttps://github.com/python/cpython/pull/128209
gh-86981https://github.com/python/cpython/issues/86981
https://cpython-previews--128209.org.readthedocs.build/https://cpython-previews--128209.org.readthedocs.build/
New threads should inherit the contextvars.Context of their creator #128555https://github.com/python/cpython/issues/128555
Please reload this pagehttps://github.com/python/cpython/pull/128209
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 27, 2024 https://github.com/python/cpython/pull/128209#ref-pullrequest-2761311880
gh-128384: Add thread-safe context manager to "warnings" module #128300 https://github.com/python/cpython/pull/128300
https://github.com/nascheme
naschemehttps://github.com/nascheme
force-pushedhttps://github.com/python/cpython/compare/708127d94f5558597320ce6bc953b056579d23c5..808fa72a50748e5e4f433d2e05b25b7e1a580abb
708127dhttps://github.com/python/cpython/commit/708127d94f5558597320ce6bc953b056579d23c5
808fa72https://github.com/python/cpython/commit/808fa72a50748e5e4f433d2e05b25b7e1a580abb
Compare https://github.com/python/cpython/compare/708127d94f5558597320ce6bc953b056579d23c5..808fa72a50748e5e4f433d2e05b25b7e1a580abb
December 28, 2024 21:05https://github.com/python/cpython/pull/128209#event-15778547380
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jan 2, 2025 https://github.com/python/cpython/pull/128209#pullrequestreview-2527166650
View reviewed changes https://github.com/python/cpython/pull/128209/files
Doc/library/threading.rsthttps://github.com/python/cpython/pull/128209/files#diff-6a424b7e58eb2394ee0335dd6e08ab8d67e7058852fae0f3aa1b40493fa14a64
Please reload this pagehttps://github.com/python/cpython/pull/128209
https://github.com/nascheme
naschemehttps://github.com/nascheme
Jan 3, 2025 https://github.com/python/cpython/pull/128209#ref-pullrequest-2768256313
gh-128384: Use contextvar for catch_warnings() #128463 https://github.com/python/cpython/pull/128463
https://github.com/nascheme
naschemehttps://github.com/nascheme
Jan 3, 2025https://github.com/python/cpython/pull/128209#issuecomment-2569924223
Please reload this pagehttps://github.com/python/cpython/pull/128209
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 3, 2025 https://github.com/python/cpython/pull/128209#pullrequestreview-2529822705
View reviewed changes https://github.com/python/cpython/pull/128209/files
Doc/library/threading.rsthttps://github.com/python/cpython/pull/128209/files#diff-6a424b7e58eb2394ee0335dd6e08ab8d67e7058852fae0f3aa1b40493fa14a64
gpsheadhttps://github.com/gpshead
Jan 3, 2025https://github.com/python/cpython/pull/128209#discussion_r1902233024
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
PEP-387 breaking change policyhttps://peps.python.org/pep-0387/
Please reload this pagehttps://github.com/python/cpython/pull/128209
naschemehttps://github.com/nascheme
Feb 11, 2025https://github.com/python/cpython/pull/128209#discussion_r1951387793
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/128209
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 3, 2025 https://github.com/python/cpython/pull/128209#pullrequestreview-2529831634
View reviewed changes https://github.com/python/cpython/pull/128209/files
Doc/library/threading.rsthttps://github.com/python/cpython/pull/128209/files#diff-6a424b7e58eb2394ee0335dd6e08ab8d67e7058852fae0f3aa1b40493fa14a64
Please reload this pagehttps://github.com/python/cpython/pull/128209
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 3, 2025 https://github.com/python/cpython/pull/128209#pullrequestreview-2529831765
View reviewed changes https://github.com/python/cpython/pull/128209/files
Lib/threading.pyhttps://github.com/python/cpython/pull/128209/files#diff-b250d3d0e0d909784a67083e9069ce507513a67e8514a011e2f364027e25e0b0
Please reload this pagehttps://github.com/python/cpython/pull/128209
https://github.com/nascheme
naschemehttps://github.com/nascheme
Jan 6, 2025https://github.com/python/cpython/pull/128209#event-15829891950
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 6, 2025 https://github.com/python/cpython/pull/128209#ref-issue-2771262563
New threads should inherit the contextvars.Context of their creator #128555 https://github.com/python/cpython/issues/128555
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jan 7, 2025 https://github.com/python/cpython/pull/128209#pullrequestreview-2533491975
View reviewed changes https://github.com/python/cpython/pull/128209/files
Doc/library/threading.rsthttps://github.com/python/cpython/pull/128209/files#diff-6a424b7e58eb2394ee0335dd6e08ab8d67e7058852fae0f3aa1b40493fa14a64
Please reload this pagehttps://github.com/python/cpython/pull/128209
Doc/library/threading.rsthttps://github.com/python/cpython/pull/128209/files#diff-6a424b7e58eb2394ee0335dd6e08ab8d67e7058852fae0f3aa1b40493fa14a64
Please reload this pagehttps://github.com/python/cpython/pull/128209
naschemehttps://github.com/nascheme
February 6, 2025 12:53https://github.com/python/cpython/pull/128209#commits-pushed-ba99f2e
https://github.com/nascheme
Make _contextvars a builtin module.https://github.com/python/cpython/pull/128209/commits/ba99f2e455f29a5b3bd2f12f85e0b8985ec49bb2
ba99f2ehttps://github.com/python/cpython/pull/128209/commits/ba99f2e455f29a5b3bd2f12f85e0b8985ec49bb2
https://github.com/nascheme
Add 'context' parameter to Thread.https://github.com/python/cpython/pull/128209/commits/6d00c2aeec9a0e222d8df6383acde2f707f33bf6
6d00c2ahttps://github.com/python/cpython/pull/128209/commits/6d00c2aeec9a0e222d8df6383acde2f707f33bf6
https://github.com/nascheme
naschemehttps://github.com/nascheme
force-pushedhttps://github.com/python/cpython/compare/19d637ac1c5df63511b1980251cc4de6b31ecb72..6d00c2aeec9a0e222d8df6383acde2f707f33bf6
19d637ahttps://github.com/python/cpython/commit/19d637ac1c5df63511b1980251cc4de6b31ecb72
6d00c2ahttps://github.com/python/cpython/commit/6d00c2aeec9a0e222d8df6383acde2f707f33bf6
Compare https://github.com/python/cpython/compare/19d637ac1c5df63511b1980251cc4de6b31ecb72..6d00c2aeec9a0e222d8df6383acde2f707f33bf6
February 6, 2025 22:29https://github.com/python/cpython/pull/128209#event-16217012616
naschemehttps://github.com/nascheme
February 6, 2025 16:10https://github.com/python/cpython/pull/128209#commits-pushed-a868fe9
https://github.com/nascheme
Tweak blurb markup.https://github.com/python/cpython/pull/128209/commits/a868fe97356f97f56468d43b3ca23b4b95636f62
a868fe9https://github.com/python/cpython/pull/128209/commits/a868fe97356f97f56468d43b3ca23b4b95636f62
https://github.com/nascheme
Doc markup fix.https://github.com/python/cpython/pull/128209/commits/16fa2c3891e143eca728a84b6942670ff810276d
16fa2c3https://github.com/python/cpython/pull/128209/commits/16fa2c3891e143eca728a84b6942670ff810276d
https://github.com/nascheme
naschemehttps://github.com/nascheme
Feb 11, 2025 https://github.com/python/cpython/pull/128209#ref-pullrequest-2846170878
gh-128384: Use a context variable for warnings.catch_warnings #130010 https://github.com/python/cpython/pull/130010
https://github.com/nascheme
naschemehttps://github.com/nascheme
February 11, 2025 18:28https://github.com/python/cpython/pull/128209#event-16269350065
https://github.com/nascheme
naschemehttps://github.com/nascheme
1st1https://github.com/1st1
corona10https://github.com/corona10
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
erlend-aaslandhttps://github.com/erlend-aasland
code ownershttps://github.com/python/cpython/blob/5cdd6e5e758a3fc0a5daac80753bf611b3e23c2d/.github/CODEOWNERS#L216
February 11, 2025 18:28https://github.com/python/cpython/pull/128209#event-16269350278
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
Feb 11, 2025https://github.com/python/cpython/pull/128209#event-16269351032
naschemehttps://github.com/nascheme
February 11, 2025 15:23https://github.com/python/cpython/pull/128209#commits-pushed-09e72b8
https://github.com/nascheme
Rename flag to thread_inherit_context.https://github.com/python/cpython/pull/128209/commits/09e72b8d76ec25b1b23477ff7b8beb4218ee26a4
09e72b8https://github.com/python/cpython/pull/128209/commits/09e72b8d76ec25b1b23477ff7b8beb4218ee26a4
https://github.com/nascheme
Merge branch 'main' into thread_inherit_contexthttps://github.com/python/cpython/pull/128209/commits/75f1b3863dceef3bd21e4a8ab6c515d77ed46057
75f1b38https://github.com/python/cpython/pull/128209/commits/75f1b3863dceef3bd21e4a8ab6c515d77ed46057
https://github.com/nascheme
Regenerate 'configure' script.https://github.com/python/cpython/pull/128209/commits/872920d525f3938bd22c623d4e0041f012688aba
872920dhttps://github.com/python/cpython/pull/128209/commits/872920d525f3938bd22c623d4e0041f012688aba
https://github.com/nascheme
Add comment about why 'context' is passed in test.https://github.com/python/cpython/pull/128209/commits/2c48fc5122522a8aaefa358c1b7e860bc0d268de
2c48fc5https://github.com/python/cpython/pull/128209/commits/2c48fc5122522a8aaefa358c1b7e860bc0d268de
https://github.com/nascheme
Revise "decimal' docs, adding note about flag.https://github.com/python/cpython/pull/128209/commits/53eb72d5511ab0f6e2cd6c0c8b8ea6c52db45c6b
53eb72dhttps://github.com/python/cpython/pull/128209/commits/53eb72d5511ab0f6e2cd6c0c8b8ea6c52db45c6b
https://github.com/nascheme
naschemehttps://github.com/nascheme
Apr 9, 2025https://github.com/python/cpython/pull/128209#issuecomment-2791178210
gh-130010https://github.com/python/cpython/pull/130010
Please reload this pagehttps://github.com/python/cpython/pull/128209
https://github.com/nascheme
naschemehttps://github.com/nascheme
Apr 9, 2025https://github.com/python/cpython/pull/128209#event-17197131783
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F128209
https://github.com/gpshead
gpshead https://github.com/gpshead
https://github.com/python/cpython/pull/128209/files/cef04e2db11d47607587227951282afe3217e9b1
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/128209/files/88d77fffda0de9d870fc7c3b6d729c50f4aff559
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/1st1
1st1 https://github.com/1st1
https://github.com/erlend-aasland
erlend-aasland https://github.com/erlend-aasland
https://github.com/corona10
corona10 https://github.com/corona10
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/128209
https://github.com/nascheme
https://github.com/gpshead
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.