René's URL Explorer Experiment


Title: gh-128384: Add locking to warnings.py. by nascheme · Pull Request #128386 · python/cpython · GitHub

Open Graph Title: gh-128384: Add locking to warnings.py. by nascheme · Pull Request #128386 · python/cpython

X Title: gh-128384: Add locking to warnings.py. by nascheme · Pull Request #128386 · python/cpython

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

Open Graph Description: The warnings module has some (relatively minor) thread safety issues. The catch_warnings contex manager is a major issue but that will be handled in a different PR. There are races between updati...

X Description: The warnings module has some (relatively minor) thread safety issues. The catch_warnings contex manager is a major issue but that will be handled in a different PR. There are races between updati...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:8b0f7db1-3f8e-73db-7dd5-8ceb76ef8a23
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA258:1A5270:CD9CC2:115F6AA:6A532C17
html-safe-nonce4d5730b1d869a75cbf7610dfe0f7a66fd8a02f61a02632fd4710f64b172dbe54
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjU4OjFBNTI3MDpDRDlDQzI6MTE1RjZBQTo2QTUzMkMxNyIsInZpc2l0b3JfaWQiOiI3ODA2MTk2OTI4Nzc0MDg5NzUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6510d9bf34c59bd43e9b6308f83b5d87dd14f66617fec962e34e89d7e86eddb5
hovercard-subject-tagpull_request:2256750134
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/128386/commits
twitter:imagehttps://opengraph.githubassets.com/771ea3fc8d4622d2e8e3780779bb4968596d197311c691af9f6a0079cadfed00/python/cpython/pull/128386
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/771ea3fc8d4622d2e8e3780779bb4968596d197311c691af9f6a0079cadfed00/python/cpython/pull/128386
og:image:altThe warnings module has some (relatively minor) thread safety issues. The catch_warnings contex manager is a major issue but that will be handled in a different PR. There are races between updati...
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/128386/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128386%2Fcommits
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%2F128386%2Fcommits
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/128386/commits
Reloadhttps://github.com/python/cpython/pull/128386/commits
Reloadhttps://github.com/python/cpython/pull/128386/commits
Please reload this pagehttps://github.com/python/cpython/pull/128386/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/128386/commits
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:warnings_lockhttps://github.com/nascheme/cpython/tree/warnings_lock
Conversationhttps://github.com/python/cpython/pull/128386
Commits11 (11)https://github.com/python/cpython/pull/128386/commits
Checkshttps://github.com/python/cpython/pull/128386/checks
Files changedhttps://github.com/python/cpython/pull/128386/files
gh-128384: Add locking to warnings.py.https://github.com/python/cpython/pull/128386/commits#top
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:warnings_lockhttps://github.com/nascheme/cpython/tree/warnings_lock
Add locking to warnings.py.https://github.com/python/cpython/pull/128386/commits/deb659dd1177e1a537fd25da94576e6e4ea32028
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
deb659dhttps://github.com/python/cpython/pull/128386/commits/deb659dd1177e1a537fd25da94576e6e4ea32028
https://github.com/python/cpython/tree/deb659dd1177e1a537fd25da94576e6e4ea32028
Rename function, add locking to _filters_mutated().https://github.com/python/cpython/pull/128386/commits/d5187b3c43a83176041e1c67b47a19b7ec0e87a1
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
d5187b3https://github.com/python/cpython/pull/128386/commits/d5187b3c43a83176041e1c67b47a19b7ec0e87a1
https://github.com/python/cpython/tree/d5187b3c43a83176041e1c67b47a19b7ec0e87a1
Use re-entrant lock for warnings module.https://github.com/python/cpython/pull/128386/commits/553d04f5c8738a4a3dc396f8551d0845a4c195c2
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
553d04fhttps://github.com/python/cpython/pull/128386/commits/553d04f5c8738a4a3dc396f8551d0845a4c195c2
https://github.com/python/cpython/tree/553d04f5c8738a4a3dc396f8551d0845a4c195c2
Fix locking for !Py_GIL_DISABLED build.https://github.com/python/cpython/pull/128386/commits/4b56ae6096b2c23b3740862f7c8f6927cd6f638c
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
4b56ae6https://github.com/python/cpython/pull/128386/commits/4b56ae6096b2c23b3740862f7c8f6927cd6f638c
https://github.com/python/cpython/tree/4b56ae6096b2c23b3740862f7c8f6927cd6f638c
Add blurb.https://github.com/python/cpython/pull/128386/commits/6100ab23607ecd8a8504d1c9ce22bb1333fde173
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
6100ab2https://github.com/python/cpython/pull/128386/commits/6100ab23607ecd8a8504d1c9ce22bb1333fde173
https://github.com/python/cpython/tree/6100ab23607ecd8a8504d1c9ce22bb1333fde173
Fix typo.https://github.com/python/cpython/pull/128386/commits/b9db71f3010a211d9933f75a293f19b4801d3a6a
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
b9db71fhttps://github.com/python/cpython/pull/128386/commits/b9db71f3010a211d9933f75a293f19b4801d3a6a
https://github.com/python/cpython/tree/b9db71f3010a211d9933f75a293f19b4801d3a6a
Update Misc/NEWS.d/next/Library/2025-01-06-10-37-27.gh-issue-128384.V0xzwH.rsthttps://github.com/python/cpython/pull/128386/commits/27e3acdb4eb436ae22e469e858c07d9a1ee81c57
naschemehttps://github.com/python/cpython/commits?author=nascheme
kumaraditya303https://github.com/python/cpython/commits?author=kumaraditya303
27e3acdhttps://github.com/python/cpython/pull/128386/commits/27e3acdb4eb436ae22e469e858c07d9a1ee81c57
https://github.com/python/cpython/tree/27e3acdb4eb436ae22e469e858c07d9a1ee81c57
Merge branch 'main' into warnings_lockhttps://github.com/python/cpython/pull/128386/commits/dcdb699a9744aea7bf8b5d60b6e623dd2994f914
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
dcdb699https://github.com/python/cpython/pull/128386/commits/dcdb699a9744aea7bf8b5d60b6e623dd2994f914
https://github.com/python/cpython/tree/dcdb699a9744aea7bf8b5d60b6e623dd2994f914
Use locking for GIL build as well.https://github.com/python/cpython/pull/128386/commits/441b1ae32be226158d412b35d7ce14356c096e56
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
441b1aehttps://github.com/python/cpython/pull/128386/commits/441b1ae32be226158d412b35d7ce14356c096e56
https://github.com/python/cpython/tree/441b1ae32be226158d412b35d7ce14356c096e56
Update Python/_warnings.chttps://github.com/python/cpython/pull/128386/commits/9bd8875bf9575a62d97aa5fde72bc3a3ea927cc8
naschemehttps://github.com/python/cpython/commits?author=nascheme
kumaraditya303https://github.com/python/cpython/commits?author=kumaraditya303
9bd8875https://github.com/python/cpython/pull/128386/commits/9bd8875bf9575a62d97aa5fde72bc3a3ea927cc8
https://github.com/python/cpython/tree/9bd8875bf9575a62d97aa5fde72bc3a3ea927cc8
Hold lock while assigning self._module methods.https://github.com/python/cpython/pull/128386/commits/5b199787b87055d5b314323e568c19411f700a5a
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
5b19978https://github.com/python/cpython/pull/128386/commits/5b199787b87055d5b314323e568c19411f700a5a
https://github.com/python/cpython/tree/5b199787b87055d5b314323e568c19411f700a5a
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.