René's URL Explorer Experiment


Title: gh-100227: Make the Global PyModuleDef Cache Safe for Isolated Interpreters by ericsnowcurrently · Pull Request #103084 · python/cpython · GitHub

Open Graph Title: gh-100227: Make the Global PyModuleDef Cache Safe for Isolated Interpreters by ericsnowcurrently · Pull Request #103084 · python/cpython

X Title: gh-100227: Make the Global PyModuleDef Cache Safe for Isolated Interpreters by ericsnowcurrently · Pull Request #103084 · python/cpython

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

Open Graph Description: Sharing mutable (or non-immortal) objects between interpreters is generally not safe. We can work around that but not easily. There are two restrictions that are critical for objects that break in...

X Description: Sharing mutable (or non-immortal) objects between interpreters is generally not safe. We can work around that but not easily. There are two restrictions that are critical for objects that break in...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:187ce9a9-65a2-67b0-2b1a-934a72b11692
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD40A:3FFE1:17BB6:1ECF8:6969C4C4
html-safe-nonce45cbb48c35e3cb811b75bd2413590bbcbbbb815e4f3cb687a6c23c62593beb8a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDBBOjNGRkUxOjE3QkI2OjFFQ0Y4OjY5NjlDNEM0IiwidmlzaXRvcl9pZCI6IjIzMzI2OTM3ODUwMTIxOTI0NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac02459553a0e6585e5dd175fac7f112d2fe09294ca6ffc4be2e9f789de6f191cb
hovercard-subject-tagpull_request:1293167297
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/103084/commits
twitter:imagehttps://opengraph.githubassets.com/13547b87e502633a20261839f71ebfc23e68e948c2d703f04ea428db9e783314/python/cpython/pull/103084
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/13547b87e502633a20261839f71ebfc23e68e948c2d703f04ea428db9e783314/python/cpython/pull/103084
og:image:altSharing mutable (or non-immortal) objects between interpreters is generally not safe. We can work around that but not easily. There are two restrictions that are critical for objects that break in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/103084/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103084%2Fcommits
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%2F103084%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/103084/commits
Reloadhttps://github.com/python/cpython/pull/103084/commits
Reloadhttps://github.com/python/cpython/pull/103084/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/103084/commits
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/103084/commits
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
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:extensions-dict-owned-by-main-interpreter-2https://github.com/ericsnowcurrently/cpython/tree/extensions-dict-owned-by-main-interpreter-2
Conversationhttps://github.com/python/cpython/pull/103084
Commits14 (14)https://github.com/python/cpython/pull/103084/commits
Checkshttps://github.com/python/cpython/pull/103084/checks
Files changedhttps://github.com/python/cpython/pull/103084/files
gh-100227: Make the Global PyModuleDef Cache Safe for Isolated Interpretershttps://github.com/python/cpython/pull/103084/commits#top
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:extensions-dict-owned-by-main-interpreter-2https://github.com/ericsnowcurrently/cpython/tree/extensions-dict-owned-by-main-interpreter-2
Make _PyRuntime.imports.extensions a struct.https://github.com/python/cpython/pull/103084/commits/ff4eb3621768e59066c0d25144f9ac07ac63ab24
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
ff4eb36https://github.com/python/cpython/pull/103084/commits/ff4eb3621768e59066c0d25144f9ac07ac63ab24
https://github.com/python/cpython/tree/ff4eb3621768e59066c0d25144f9ac07ac63ab24
Factor out add_threadstate().https://github.com/python/cpython/pull/103084/commits/e558d765ecb03972d95f076daf3a73e9d5b998b5
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
e558d76https://github.com/python/cpython/pull/103084/commits/e558d765ecb03972d95f076daf3a73e9d5b998b5
https://github.com/python/cpython/tree/e558d765ecb03972d95f076daf3a73e9d5b998b5
Add _PyThreadState_InitDetached().https://github.com/python/cpython/pull/103084/commits/acf5269bdf94009f72ae8650f6253398d9b6fbb7
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
acf5269https://github.com/python/cpython/pull/103084/commits/acf5269bdf94009f72ae8650f6253398d9b6fbb7
https://github.com/python/cpython/tree/acf5269bdf94009f72ae8650f6253398d9b6fbb7
Add _PyThreadState_ClearDetached().https://github.com/python/cpython/pull/103084/commits/181106e3eef47cdfb5b933b8bd3b6f71da48d36c
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
181106ehttps://github.com/python/cpython/pull/103084/commits/181106e3eef47cdfb5b933b8bd3b6f71da48d36c
https://github.com/python/cpython/tree/181106e3eef47cdfb5b933b8bd3b6f71da48d36c
Add extensions_lock_acquire() and extensions_lock_release().https://github.com/python/cpython/pull/103084/commits/b8ffbba3b81b9b9241c23541057a1abba10e047a
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
b8ffbbahttps://github.com/python/cpython/pull/103084/commits/b8ffbba3b81b9b9241c23541057a1abba10e047a
https://github.com/python/cpython/tree/b8ffbba3b81b9b9241c23541057a1abba10e047a
Add _PyRuntime.imports.extensions.main_tstate.https://github.com/python/cpython/pull/103084/commits/a86aea5b46d956efe68215ca91fb0320d116431c
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
a86aea5https://github.com/python/cpython/pull/103084/commits/a86aea5b46d956efe68215ca91fb0320d116431c
https://github.com/python/cpython/tree/a86aea5b46d956efe68215ca91fb0320d116431c
Add _PyThreadState_BindDetached() and _PyThreadState_UnbindDetached().https://github.com/python/cpython/pull/103084/commits/d79afe586c31bdb342f5aa7289f9320ed7d91c9d
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
d79afe5https://github.com/python/cpython/pull/103084/commits/d79afe586c31bdb342f5aa7289f9320ed7d91c9d
https://github.com/python/cpython/tree/d79afe586c31bdb342f5aa7289f9320ed7d91c9d
Share the extensions dict safely.https://github.com/python/cpython/pull/103084/commits/51821860affc43f26478f6faddd9007424200132
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
5182186https://github.com/python/cpython/pull/103084/commits/51821860affc43f26478f6faddd9007424200132
https://github.com/python/cpython/tree/51821860affc43f26478f6faddd9007424200132
Intern the name and filename in the main interpreter.https://github.com/python/cpython/pull/103084/commits/f6db0a270b40c1ce230bdd1442b67a0a505e9269
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
f6db0a2https://github.com/python/cpython/pull/103084/commits/f6db0a270b40c1ce230bdd1442b67a0a505e9269
https://github.com/python/cpython/tree/f6db0a270b40c1ce230bdd1442b67a0a505e9269
Fix the asserts in _PyThreadState_BindDetached() and _PyThreadState_UnbindDetached().https://github.com/python/cpython/pull/103084/commits/dac9c23e4194a6232fdd97cb6bd47c2ad32fda6e
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
dac9c23https://github.com/python/cpython/pull/103084/commits/dac9c23e4194a6232fdd97cb6bd47c2ad32fda6e
https://github.com/python/cpython/tree/dac9c23e4194a6232fdd97cb6bd47c2ad32fda6e
Swap back when done using main_tstate.https://github.com/python/cpython/pull/103084/commits/8d442e2d79d7bc517f9eba4bec5f256be9d09b7f
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
8d442e2https://github.com/python/cpython/pull/103084/commits/8d442e2d79d7bc517f9eba4bec5f256be9d09b7f
https://github.com/python/cpython/tree/8d442e2d79d7bc517f9eba4bec5f256be9d09b7f
Disable a prematurely-restrictive assert.https://github.com/python/cpython/pull/103084/commits/ee70a96101040dac9fc07105a8022f40f557d317
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
ee70a96https://github.com/python/cpython/pull/103084/commits/ee70a96101040dac9fc07105a8022f40f557d317
https://github.com/python/cpython/tree/ee70a96101040dac9fc07105a8022f40f557d317
Fix a copy-and-paste bug.https://github.com/python/cpython/pull/103084/commits/e9c37fe6e04abefdba37a9472004488236adc99d
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
e9c37fehttps://github.com/python/cpython/pull/103084/commits/e9c37fe6e04abefdba37a9472004488236adc99d
https://github.com/python/cpython/tree/e9c37fe6e04abefdba37a9472004488236adc99d
Decref name & filename if copied.https://github.com/python/cpython/pull/103084/commits/8e005bf00be6f7f4e1ef2e3db154fd279e053ec3
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
8e005bfhttps://github.com/python/cpython/pull/103084/commits/8e005bf00be6f7f4e1ef2e3db154fd279e053ec3
https://github.com/python/cpython/tree/8e005bf00be6f7f4e1ef2e3db154fd279e053ec3
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.