René's URL Explorer Experiment


Title: gh-130094: Fix race conditions in `importlib` by colesbury · Pull Request #130101 · python/cpython · GitHub

Open Graph Title: gh-130094: Fix race conditions in `importlib` by colesbury · Pull Request #130101 · python/cpython

X Title: gh-130094: Fix race conditions in `importlib` by colesbury · Pull Request #130101 · python/cpython

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

Open Graph Description: Entries may be added or removed from sys.meta_path concurrently. For example, setuptools temporarily adds and removes the distutils finder from the beginning of the list. The local copy ensures tha...

X Description: Entries may be added or removed from sys.meta_path concurrently. For example, setuptools temporarily adds and removes the distutils finder from the beginning of the list. The local copy ensures tha...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
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:94af8689-f93e-27da-1922-c29cb10d889b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD9FC:24555E:60FA52:814AF6:6AED1DF6
html-safe-nonce17b412fdb03383883e3a86291b5a7d13d2efa7a25d42830774bb997a5f96fb7d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUZDOjI0NTU1RTo2MEZBNTI6ODE0QUY2OjZBRUQxREY2IiwidmlzaXRvcl9pZCI6IjU4Mzg5MjE5MTgwMjE3MDUyMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb0800395398302b5a282fc2b38d1fbae979d3d283454ab2c14cb2003fcd960de
hovercard-subject-tagpull_request:2334978461
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/130101/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/bcfca26b93084eefe1774b7c7a5c5cf8cd148fe86ef5016c7b7e194459e6cfab/python/cpython/pull/130101
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bcfca26b93084eefe1774b7c7a5c5cf8cd148fe86ef5016c7b7e194459e6cfab/python/cpython/pull/130101
og:image:altEntries may be added or removed from sys.meta_path concurrently. For example, setuptools temporarily adds and removes the distutils finder from the beginning of the list. The local copy ensures tha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecolesbury
hostnamegithub.com
expected-hostnamegithub.com
Nonee3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6
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
release707a24b346ac8a82878b9c084efaa38a997660cb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/130101#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130101
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130101
Sign uphttps://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/130101
Reloadhttps://github.com/python/cpython/pull/130101
Reloadhttps://github.com/python/cpython/pull/130101
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.3k (2.3k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/pulse
https://github.com/python/cpython
colesburyhttps://github.com/colesbury
python:mainhttps://github.com/python/cpython/tree/main
colesbury:gh-130094-sys-meta-pathhttps://github.com/colesbury/cpython/tree/gh-130094-sys-meta-path
Conversationhttps://github.com/python/cpython/pull/130101
Commits6 (6)https://github.com/python/cpython/pull/130101/commits
Checkshttps://github.com/python/cpython/pull/130101/checks
Files changedhttps://github.com/python/cpython/pull/130101/files
gh-130094: Fix race conditions in importlibhttps://github.com/python/cpython/pull/130101#top
colesburyhttps://github.com/colesbury
python:mainhttps://github.com/python/cpython/tree/main
colesbury:gh-130094-sys-meta-pathhttps://github.com/colesbury/cpython/tree/gh-130094-sys-meta-path
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Feb 14, 2025https://github.com/python/cpython/pull/130101#issue-2852386074
Please reload this pagehttps://github.com/python/cpython/pull/130101
Parallel import of modules causes a ModuleNotFoundError #130094https://github.com/python/cpython/issues/130094
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/colesbury
pythongh-130094https://github.com/python/cpython/issues/130094
: Fix race condition inhttps://github.com/python/cpython/pull/130101/commits/194beca4474ccf381d88f0797f9d6a0a85c41cd0
_find_spechttps://github.com/python/cpython/pull/130101/commits/194beca4474ccf381d88f0797f9d6a0a85c41cd0
194becahttps://github.com/python/cpython/pull/130101/commits/194beca4474ccf381d88f0797f9d6a0a85c41cd0
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Feb 14, 2025 https://github.com/python/cpython/pull/130101#ref-issue-2851960100
Parallel import of modules causes a ModuleNotFoundError #130094 https://github.com/python/cpython/issues/130094
colesburyhttps://github.com/colesbury
February 14, 2025 00:37https://github.com/python/cpython/pull/130101#commits-pushed-5c2a6d7
https://github.com/colesbury
Update blurbhttps://github.com/python/cpython/pull/130101/commits/5c2a6d7aa1e13631c97931506ddf495dd7488970
5c2a6d7https://github.com/python/cpython/pull/130101/commits/5c2a6d7aa1e13631c97931506ddf495dd7488970
https://github.com/colesbury
Update test_frozenmain.hhttps://github.com/python/cpython/pull/130101/commits/d5bdf6a2060bd70f2ee6842d6619a5d997985b29
d5bdf6ahttps://github.com/python/cpython/pull/130101/commits/d5bdf6a2060bd70f2ee6842d6619a5d997985b29
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Feb 14, 2025https://github.com/python/cpython/pull/130101#issuecomment-2658903094
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/colesbury
Fix another race conditionhttps://github.com/python/cpython/pull/130101/commits/76fd124377903bf4faf6c30cc37c559f01773eb5
76fd124https://github.com/python/cpython/pull/130101/commits/76fd124377903bf4faf6c30cc37c559f01773eb5
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Feb 14, 2025https://github.com/python/cpython/pull/130101#event-16313524269
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Feb 14, 2025https://github.com/python/cpython/pull/130101#issuecomment-2659645317
@eendebakpthttps://github.com/eendebakpt
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/colesbury
Re-add removed checkhttps://github.com/python/cpython/pull/130101/commits/905549ade8a22d197bfefe9f8a9b926933a51423
905549ahttps://github.com/python/cpython/pull/130101/commits/905549ade8a22d197bfefe9f8a9b926933a51423
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Feb 14, 2025https://github.com/python/cpython/pull/130101#event-16313718375
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Feb 15, 2025https://github.com/python/cpython/pull/130101#issuecomment-2661086505
@colesburyhttps://github.com/colesbury
3dc2beehttps://github.com/python/cpython/commit/3dc2beec0d7ddae0d15f7f3d9f9135508b0ba4f5
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/colesbury
colesburyhttps://github.com/colesbury
February 18, 2025 17:09https://github.com/python/cpython/pull/130101#event-16352106667
https://github.com/colesbury
colesburyhttps://github.com/colesbury
brettcannonhttps://github.com/brettcannon
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
ncoghlanhttps://github.com/ncoghlan
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/076300d795cd45706f929c4fd291014e233f6f7a/.github/CODEOWNERS#L133
February 18, 2025 17:09https://github.com/python/cpython/pull/130101#event-16352106860
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 18, 2025https://github.com/python/cpython/pull/130101#event-16352107433
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
Feb 18, 2025 https://github.com/python/cpython/pull/130101#pullrequestreview-2624715590
View reviewed changes https://github.com/python/cpython/pull/130101/files/905549ade8a22d197bfefe9f8a9b926933a51423
Lib/importlib/_bootstrap.pyhttps://github.com/python/cpython/pull/130101/files/905549ade8a22d197bfefe9f8a9b926933a51423#diff-dba786ae26d5505c4c367a93b1179c2f80f2433d983b84bacb9001fb552f0761
Please reload this pagehttps://github.com/python/cpython/pull/130101
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
Feb 18, 2025https://github.com/python/cpython/pull/130101#event-16354122791
https://github.com/colesbury
https://github.com/brettcannon
Update Lib/importlib/_bootstrap.pyhttps://github.com/python/cpython/pull/130101/commits/0725f905cf719e7d6d291cb3f0f83b240962c571
0725f90https://github.com/python/cpython/pull/130101/commits/0725f905cf719e7d6d291cb3f0f83b240962c571
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
Feb 18, 2025 https://github.com/python/cpython/pull/130101#pullrequestreview-2625230080
View reviewed changes https://github.com/python/cpython/pull/130101/files/0725f905cf719e7d6d291cb3f0f83b240962c571
https://github.com/colesbury
colesburyhttps://github.com/colesbury
857bdbahttps://github.com/python/cpython/commit/857bdba0ac66ed7963e9fca45ab1a5f7a32b4bfb
Feb 18, 2025https://github.com/python/cpython/pull/130101#event-16356680319
https://github.com/colesbury
colesburyhttps://github.com/colesbury
February 18, 2025 23:02https://github.com/python/cpython/pull/130101#event-16356680710
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
Feb 18, 2025https://github.com/python/cpython/pull/130101#event-16356680762
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jan 10, 2026https://github.com/python/cpython/pull/130101#event-21961640754
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 10, 2026https://github.com/python/cpython/pull/130101#issuecomment-3732274703
@colesburyhttps://github.com/colesbury
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 10, 2026https://github.com/python/cpython/pull/130101#issuecomment-3732276768
@colesburyhttps://github.com/colesbury
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
colesburyhttps://github.com/colesbury
Jan 10, 2026https://github.com/python/cpython/pull/130101#event-21961642284
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 10, 2026https://github.com/python/cpython/pull/130101#issuecomment-3732281468
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 10, 2026https://github.com/python/cpython/pull/130101#issuecomment-3732463355
#143650https://github.com/python/cpython/issues/143650
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Mar 16, 2026https://github.com/python/cpython/pull/130101#issuecomment-4068682400
@gpsheadhttps://github.com/gpshead
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/YangAn-microsoft
YangAn-microsofthttps://github.com/YangAn-microsoft
May 21, 2026 https://github.com/python/cpython/pull/130101#ref-pullrequest-4312907038
{Core} Restore sequential module loading Azure/azure-cli#33250 https://github.com/Azure/azure-cli/pull/33250
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jul 15, 2026https://github.com/python/cpython/pull/130101#issuecomment-4979790563
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 17, 2026https://github.com/python/cpython/pull/130101#issuecomment-5310970149
GH-155915https://github.com/python/cpython/pull/155915
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Aug 17, 2026https://github.com/python/cpython/pull/130101#event-29538182378
zsaladinhttps://github.com/zsaladin
Aug 17, 2026 https://github.com/python/cpython/pull/130101#ref-commit-f45ca68
https://github.com/colesbury
https://github.com/zsaladin
[3.13]https://github.com/zsaladin/cpython/commit/f45ca688e0fd90ba891ff794c154fff8a42e51bc
pythongh-130094https://github.com/python/cpython/issues/130094
: Fix race conditions inhttps://github.com/zsaladin/cpython/commit/f45ca688e0fd90ba891ff794c154fff8a42e51bc
importlibhttps://github.com/zsaladin/cpython/commit/f45ca688e0fd90ba891ff794c154fff8a42e51bc
(https://github.com/zsaladin/cpython/commit/f45ca688e0fd90ba891ff794c154fff8a42e51bc
pythongh-…https://github.com/python/cpython/pull/130101
f45ca68https://github.com/zsaladin/cpython/commit/f45ca688e0fd90ba891ff794c154fff8a42e51bc
…130101https://github.com/python/cpython/pull/130101
857bdbahttps://github.com/zsaladin/cpython/commit/857bdba0ac66ed7963e9fca45ab1a5f7a32b4bfb
corona10https://github.com/corona10
Aug 17, 2026 https://github.com/python/cpython/pull/130101#ref-commit-b0a181d
https://github.com/zsaladin
[3.13]https://github.com/python/cpython/commit/b0a181d8fcf691f4d9eaabc6d39de1eefc863272
gh-130094https://github.com/python/cpython/issues/130094
: Fix race conditions inhttps://github.com/python/cpython/commit/b0a181d8fcf691f4d9eaabc6d39de1eefc863272
importlibhttps://github.com/python/cpython/commit/b0a181d8fcf691f4d9eaabc6d39de1eefc863272
(https://github.com/python/cpython/commit/b0a181d8fcf691f4d9eaabc6d39de1eefc863272
gh-130101https://github.com/python/cpython/pull/130101
) (https://github.com/python/cpython/commit/b0a181d8fcf691f4d9eaabc6d39de1eefc863272
gh-…https://github.com/python/cpython/pull/155915
b0a181dhttps://github.com/python/cpython/commit/b0a181d8fcf691f4d9eaabc6d39de1eefc863272
…155915https://github.com/python/cpython/pull/155915
https://github.com/Kyle-Neale
Kyle-Nealehttps://github.com/Kyle-Neale
Oct 21, 2026 https://github.com/python/cpython/pull/130101#ref-issue-5963529457
Concurrent imports of a package and its submodule raise _DeadlockError in 3.14 and since 3.13.16 #160045 https://github.com/python/cpython/issues/160045
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%2F130101
https://github.com/brettcannon
brettcannon https://github.com/brettcannon
https://github.com/python/cpython/pull/130101/files/0725f905cf719e7d6d291cb3f0f83b240962c571
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/ncoghlan
ncoghlan https://github.com/ncoghlan
https://github.com/warsaw
warsaw https://github.com/warsaw
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/colesbury
colesbury https://github.com/colesbury
Please reload this pagehttps://github.com/python/cpython/pull/130101
https://github.com/colesbury
https://github.com/eendebakpt
https://github.com/gpshead
https://github.com/serhiy-storchaka
https://github.com/brettcannon
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.