René's URL Explorer Experiment


Title: Convert _ctypes extension module to multi-phase init · Issue #117142 · python/cpython · GitHub

Open Graph Title: Convert _ctypes extension module to multi-phase init · Issue #117142 · python/cpython

X Title: Convert _ctypes extension module to multi-phase init · Issue #117142 · python/cpython

Description: Feature or enhancement Proposal: This issue is available to keep track of PRs, following the heap type conversion completed at #114314. TODO: [ ] Make free_list in malloc_closure.c per-module variables. rejected Fix intentional memory le...

Open Graph Description: Feature or enhancement Proposal: This issue is available to keep track of PRs, following the heap type conversion completed at #114314. TODO: [ ] Make free_list in malloc_closure.c per-module varia...

X Description: Feature or enhancement Proposal: This issue is available to keep track of PRs, following the heap type conversion completed at #114314. TODO: [ ] Make free_list in malloc_closure.c per-module varia...

Opengraph URL: https://github.com/python/cpython/issues/117142

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Convert _ctypes extension module to multi-phase init","articleBody":"# Feature or enhancement\r\n\r\n### Proposal:\r\n\r\nThis issue is available to keep track of PRs, following the heap type conversion completed at #114314.\r\n\r\n### TODO:\r\n- ~[ ]  Make `free_list` in `malloc_closure.c` per-module variables.~ [rejected](https://github.com/python/cpython/pull/117874#issuecomment-2096089529)\r\n- [x]  Fix intentional memory leaks of `StgInfo` during a finalization: [comment](https://github.com/python/cpython/pull/117181#issuecomment-2029764312).\r\n- [x]  Enable `Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED`(DONE): [comment](https://github.com/python/cpython/pull/117181#discussion_r1557516762).\r\nFUTURE?: `Py_MOD_PER_INTERPRETER_GIL_SUPPORTED` after a compatible `PyGILState_Ensure()` is introduced, see also the links below.\r\n\r\n\r\n### Links to documents:\r\n\r\n* [**libffi: a foreign function interface library**](https://gensoft.pasteur.fr/docs/libffi/3.3/libffi.pdf)\r\n* [**libffi - GitHub**](https://github.com/libffi/libffi)\r\n\r\n### Links to previous discussion of this feature:\r\n\r\n* #103092\r\n* #114314\r\n* **`PyGILState_Ensure()`** for sub-interpreters:\r\n  * #59956\r\n  * #55124\r\n    * [`_ctypes` patch](https://bugs.python.org/file20417/gilstateinterp.patch) (2011)\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-117143\r\n* gh-117181\r\n* gh-117189\r\n* gh-117544\r\n* gh-117874\r\n* gh-117875\r\n* gh-118139\r\n* gh-119424\r\n* gh-119468\r\n* gh-119991\n* gh-120008\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/neonene","@type":"Person","name":"neonene"},"datePublished":"2024-03-22T00:03:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/117142/cpython/issues/117142"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3af745cb-3660-0a44-2fa7-2e2ac2865389
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA9FC:9D4F4:DA7C23:12BDA37:6969ED52
html-safe-noncea927edec684cf29057bf2e1a73c4a92e2183fbfd0359f0a23b8643e2c2a2e496
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUZDOjlENEY0OkRBN0MyMzoxMkJEQTM3OjY5NjlFRDUyIiwidmlzaXRvcl9pZCI6IjQ4NTg2NTgxMjAxNjM1MTk4MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaaa62bc102853e524f6a735c9399eef249511581add82cafe806726300d01279
hovercard-subject-tagissue:2201423424
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/117142/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3a994271de6374398224b24f28ba58c4e858cf15038268ba0e7a0206081a1e46/python/cpython/issues/117142
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3a994271de6374398224b24f28ba58c4e858cf15038268ba0e7a0206081a1e46/python/cpython/issues/117142
og:image:altFeature or enhancement Proposal: This issue is available to keep track of PRs, following the heap type conversion completed at #114314. TODO: [ ] Make free_list in malloc_closure.c per-module varia...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameneonene
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
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
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/117142#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F117142
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%2Fissues%2F117142
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/117142
Reloadhttps://github.com/python/cpython/issues/117142
Reloadhttps://github.com/python/cpython/issues/117142
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/117142
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/issues/117142
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/117142
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/117142
Convert _ctypes extension module to multi-phase inithttps://github.com/python/cpython/issues/117142#top
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-subinterpretershttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-subinterpreters%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/neonene
https://github.com/neonene
neonenehttps://github.com/neonene
on Mar 22, 2024https://github.com/python/cpython/issues/117142#issue-2201423424
#114314https://github.com/python/cpython/issues/114314
rejectedhttps://github.com/python/cpython/pull/117874#issuecomment-2096089529
commenthttps://github.com/python/cpython/pull/117181#issuecomment-2029764312
commenthttps://github.com/python/cpython/pull/117181#discussion_r1557516762
libffi: a foreign function interface libraryhttps://gensoft.pasteur.fr/docs/libffi/3.3/libffi.pdf
libffi - GitHubhttps://github.com/libffi/libffi
Isolate Stdlib Extension Modules #103092https://github.com/python/cpython/issues/103092
Convert _ctypes static types (and the "meta class") to heap types #114314https://github.com/python/cpython/issues/114314
[subinterpreters] Make the PyGILState API compatible with subinterpreters #59956https://github.com/python/cpython/issues/59956
[subinterpreters] Make the PyGILState API compatible with multiple interpreters #55124https://github.com/python/cpython/issues/55124
_ctypes patchhttps://bugs.python.org/file20417/gilstateinterp.patch
gh-117142: ctypes: Unify meta tp slot functions #117143https://github.com/python/cpython/pull/117143
gh-117142: Port _ctypes to multi-phase init #117181https://github.com/python/cpython/pull/117181
gh-117142: ctypes: Migrate global vars to module state #117189https://github.com/python/cpython/pull/117189
gh-117142: ctypes: Clean up globals-to-fix.tsv #117544https://github.com/python/cpython/pull/117544
gh-117142: ctypes: Migrate global closure freelist to thunk-type state #117874https://github.com/python/cpython/pull/117874
gh-117142: ctypes: Migrate global closure freelist to module state #117875https://github.com/python/cpython/pull/117875
gh-117142: ctypes: Fix memory leak of StgInfo #118139https://github.com/python/cpython/pull/118139
gh-117142: Slightly hacky fix for memory leak of StgInfo #119424https://github.com/python/cpython/pull/119424
[3.13] gh-117142: Slightly hacky fix for memory leak of StgInfo (GH-119424) #119468https://github.com/python/cpython/pull/119468
gh-117142: Support Importing ctypes in Isolated Interpreters #119991https://github.com/python/cpython/pull/119991
[3.13] gh-117142: Support Importing ctypes in Isolated Interpreters (gh-119991) #120008https://github.com/python/cpython/pull/120008
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-subinterpretershttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-subinterpreters%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
Subinterpretershttps://github.com/orgs/python/projects/3
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.