René's URL Explorer Experiment


Title: gh-113964: Restore the ability to start threads from atexit handler functions. by gpshead · Pull Request #116982 · python/cpython · GitHub

Open Graph Title: gh-113964: Restore the ability to start threads from atexit handler functions. by gpshead · Pull Request #116982 · python/cpython

X Title: gh-113964: Restore the ability to start threads from atexit handler functions. by gpshead · Pull Request #116982 · python/cpython

Description: In 3.12 we removed the ability to start threads from within an atexit.register() handler function context as Python interpreter finalization was starting. Users were relying on this, sometimes indi...

Open Graph Description: In 3.12 we removed the ability to start threads from within an atexit.register() handler function context as Python interpreter finalization was starting. Users were relying on this, sometimes indi...

X Description: In 3.12 we removed the ability to start threads from within an atexit.register() handler function context as Python interpreter finalization was starting. Users were relying on this, sometimes indi...

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

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:8049f298-8b5e-4a25-64f2-f6354d3b8569
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8BF0:28D973:243938:332BC9:696A4B0A
html-safe-nonceaa3287db7570bd3ddeb712da96d28a485a66b187600964039fed74f3eaa40d76
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkYwOjI4RDk3MzoyNDM5Mzg6MzMyQkM5OjY5NkE0QjBBIiwidmlzaXRvcl9pZCI6IjEwNTIyOTU5OTMyMDI3MjM1OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc3ca5c6599f086ab6a81cb14ef6551e282ef8128409f952a3755627089158f03
hovercard-subject-tagpull_request:1779352824
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/116982/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/df5c7f2bed4a6f7686289b7e53bf64ad99891665fc703e701f4dae060cbdaa82/python/cpython/pull/116982
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/df5c7f2bed4a6f7686289b7e53bf64ad99891665fc703e701f4dae060cbdaa82/python/cpython/pull/116982
og:image:altIn 3.12 we removed the ability to start threads from within an atexit.register() handler function context as Python interpreter finalization was starting. Users were relying on this, sometimes indi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegpshead
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/116982#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F116982
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%2F116982
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/116982
Reloadhttps://github.com/python/cpython/pull/116982
Reloadhttps://github.com/python/cpython/pull/116982
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/116982
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/116982
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/116982#issue-comment-box
gpsheadhttps://github.com/gpshead
python:mainhttps://github.com/python/cpython/tree/main
gpshead:bug/atexit/threads/gh113964https://github.com/gpshead/cpython/tree/bug/atexit/threads/gh113964
gh-113964: Restore the ability to start threads from atexit handler functions. https://github.com/python/cpython/pull/116982#top
gpsheadhttps://github.com/gpshead
python:mainhttps://github.com/python/cpython/tree/main
gpshead:bug/atexit/threads/gh113964https://github.com/gpshead/cpython/tree/bug/atexit/threads/gh113964
Conversation 11 https://github.com/python/cpython/pull/116982
Commits 2 https://github.com/python/cpython/pull/116982/commits
Checks 0 https://github.com/python/cpython/pull/116982/checks
Files changed https://github.com/python/cpython/pull/116982/files
Please reload this pagehttps://github.com/python/cpython/pull/116982
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Mar 19, 2024https://github.com/python/cpython/pull/116982#issue-2194375858
Please reload this pagehttps://github.com/python/cpython/pull/116982
#116677https://github.com/python/cpython/pull/116677
3.12 regression: "can't create new thread at interpreter shutdown" from non-daemon threads or atexit handlers #113964https://github.com/python/cpython/issues/113964
https://cpython-previews--116982.org.readthedocs.build/https://cpython-previews--116982.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/116982
https://github.com/gpshead
Restore the ability to start threads from atexit handler functions.https://github.com/python/cpython/pull/116982/commits/150a2d7fcebbbffad126aef4de68f9f7b954e051
150a2d7https://github.com/python/cpython/pull/116982/commits/150a2d7fcebbbffad126aef4de68f9f7b954e051
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
colesburyhttps://github.com/colesbury
March 19, 2024 08:51https://github.com/python/cpython/pull/116982#event-12165759169
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownerhttps://github.com/python/cpython/blob/a3cf0fada09b74b1a6981cc06c4dd0bb1091b092/.github/CODEOWNERS#L51
March 19, 2024 08:51https://github.com/python/cpython/pull/116982#event-12165759302
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
Mar 19, 2024https://github.com/python/cpython/pull/116982#event-12165760074
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 19, 2024 https://github.com/python/cpython/pull/116982#ref-issue-2077764872
3.12 regression: "can't create new thread at interpreter shutdown" from non-daemon threads or atexit handlers #113964 https://github.com/python/cpython/issues/113964
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
March 19, 2024 08:51https://github.com/python/cpython/pull/116982#event-12165761239
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Mar 19, 2024 https://github.com/python/cpython/pull/116982#ref-pullrequest-2182620190
gh-113964: Don't prevent new threads until all non-daemon threads exit #116677 https://github.com/python/cpython/pull/116677
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
vstinnerhttps://github.com/vstinner
March 19, 2024 08:57https://github.com/python/cpython/pull/116982#event-12165832340
https://github.com/gpshead
Fix duplicate test method name and _thread test.https://github.com/python/cpython/pull/116982/commits/1ba58cd17536c2e0da2f81ecb956757236067286
1ba58cdhttps://github.com/python/cpython/pull/116982/commits/1ba58cd17536c2e0da2f81ecb956757236067286
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 19, 2024 https://github.com/python/cpython/pull/116982#pullrequestreview-1945590660
View reviewed changes https://github.com/python/cpython/pull/116982/files/1ba58cd17536c2e0da2f81ecb956757236067286
Include/internal/pycore_interp.hhttps://github.com/python/cpython/pull/116982/files/1ba58cd17536c2e0da2f81ecb956757236067286#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
vstinnerhttps://github.com/vstinner
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1529985280
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/116982
gpsheadhttps://github.com/gpshead
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1531252076
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/116982
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Mar 19, 2024 https://github.com/python/cpython/pull/116982#pullrequestreview-1945563681
View reviewed changes https://github.com/python/cpython/pull/116982/files/150a2d7fcebbbffad126aef4de68f9f7b954e051
Include/internal/pycore_interp.hhttps://github.com/python/cpython/pull/116982/files/150a2d7fcebbbffad126aef4de68f9f7b954e051#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
gpsheadhttps://github.com/gpshead
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1529968880
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/116982
Lib/threading.pyhttps://github.com/python/cpython/pull/116982/files/150a2d7fcebbbffad126aef4de68f9f7b954e051#diff-b250d3d0e0d909784a67083e9069ce507513a67e8514a011e2f364027e25e0b0
gpsheadhttps://github.com/gpshead
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1529977523
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
ee84a60https://github.com/python/cpython/commit/ee84a608587b930176d37303afae8a4358e15990
Please reload this pagehttps://github.com/python/cpython/pull/116982
Lib/threading.pyhttps://github.com/python/cpython/pull/116982/files/150a2d7fcebbbffad126aef4de68f9f7b954e051#diff-b250d3d0e0d909784a67083e9069ce507513a67e8514a011e2f364027e25e0b0
gpsheadhttps://github.com/gpshead
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1529979189
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/116982
Modules/atexitmodule.chttps://github.com/python/cpython/pull/116982/files/150a2d7fcebbbffad126aef4de68f9f7b954e051#diff-9879f5d0bb589f701ff1ed80c76cef954013a1debd397a339efc9543a6c271e2
gpsheadhttps://github.com/gpshead
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1529983620
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/116982
Modules/atexitmodule.chttps://github.com/python/cpython/pull/116982/files/150a2d7fcebbbffad126aef4de68f9f7b954e051#diff-9879f5d0bb589f701ff1ed80c76cef954013a1debd397a339efc9543a6c271e2
gpsheadhttps://github.com/gpshead
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1529984592
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/116982
Python/pylifecycle.chttps://github.com/python/cpython/pull/116982/files/150a2d7fcebbbffad126aef4de68f9f7b954e051#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
gpsheadhttps://github.com/gpshead
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1529985812
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/116982
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Mar 19, 2024 https://github.com/python/cpython/pull/116982#pullrequestreview-1947170322
View reviewed changes https://github.com/python/cpython/pull/116982/files/1ba58cd17536c2e0da2f81ecb956757236067286
colesburyhttps://github.com/colesbury
https://github.com/python/cpython/pull/116982#pullrequestreview-1947170322
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://gist.github.com/colesbury/4093e5675d988ceea10fb7eda4c8c864https://gist.github.com/colesbury/4093e5675d988ceea10fb7eda4c8c864
https://gist.github.com/colesbury/5a4ce123f1917c097bd5b45735e89d79https://gist.github.com/colesbury/5a4ce123f1917c097bd5b45735e89d79
Please reload this pagehttps://github.com/python/cpython/pull/116982
Python/pylifecycle.chttps://github.com/python/cpython/pull/116982/files/1ba58cd17536c2e0da2f81ecb956757236067286#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
colesburyhttps://github.com/colesbury
Mar 19, 2024https://github.com/python/cpython/pull/116982#discussion_r1530959694
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/116982
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Mar 20, 2024https://github.com/python/cpython/pull/116982#issuecomment-2008376378
Please reload this pagehttps://github.com/python/cpython/pull/116982
Please reload this pagehttps://github.com/python/cpython/pull/116982
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%2F116982
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/116982/files/1ba58cd17536c2e0da2f81ecb956757236067286
https://github.com/colesbury
colesbury https://github.com/colesbury
https://github.com/python/cpython/pull/116982/files/1ba58cd17536c2e0da2f81ecb956757236067286
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
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/116982
https://github.com/gpshead
https://github.com/vstinner
https://github.com/colesbury
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.