René's URL Explorer Experiment


Title: gh-117142: ctypes: Migrate global vars to module state by neonene · Pull Request #117189 · python/cpython · GitHub

Open Graph Title: gh-117142: ctypes: Migrate global vars to module state by neonene · Pull Request #117189 · python/cpython

X Title: gh-117142: ctypes: Migrate global vars to module state by neonene · Pull Request #117189 · python/cpython

Description: Separated PR from #117181, keeping global state access: Move global variables into the global state Call functions with the global state attached I think almost all diffs can be checked mechanica...

Open Graph Description: Separated PR from #117181, keeping global state access: Move global variables into the global state Call functions with the global state attached I think almost all diffs can be checked mechanica...

X Description: Separated PR from #117181, keeping global state access: Move global variables into the global state Call functions with the global state attached I think almost all diffs can be checked mechanica...

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

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:a9e1de6a-c833-182a-af03-c2689b836c99
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC3FE:280F84:3AC4AD:5196B8:696A200D
html-safe-nonce53e84e3f8d20ee9dbba88697a9a1442ab120e91297a466d6afb6eceb54306cb2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0ZFOjI4MEY4NDozQUM0QUQ6NTE5NkI4OjY5NkEyMDBEIiwidmlzaXRvcl9pZCI6IjYyNzk2Mzk0ODU4ODAzNDQ1ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd03b79e960b77e63938551634407136b25e514fdec8b11be9a08eac88742e325
hovercard-subject-tagpull_request:1788079536
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/117189/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/22617f53b3269597d9b55b00a79ce8ad254289d37362e3eedbd300e8dacad65e/python/cpython/pull/117189
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/22617f53b3269597d9b55b00a79ce8ad254289d37362e3eedbd300e8dacad65e/python/cpython/pull/117189
og:image:altSeparated PR from #117181, keeping global state access: Move global variables into the global state Call functions with the global state attached I think almost all diffs can be checked mechanica...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameneonene
hostnamegithub.com
expected-hostnamegithub.com
None014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3
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
released515f6f09fa57a93bf90355cb894eb84ca4f458f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/117189#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117189
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%2F117189
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/117189
Reloadhttps://github.com/python/cpython/pull/117189
Reloadhttps://github.com/python/cpython/pull/117189
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/117189
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/117189
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/117189#issue-comment-box
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
gh-117142: ctypes: Migrate global vars to module state https://github.com/python/cpython/pull/117189#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
Conversation 8 https://github.com/python/cpython/pull/117189
Commits 12 https://github.com/python/cpython/pull/117189/commits
Checks 0 https://github.com/python/cpython/pull/117189/checks
Files changed https://github.com/python/cpython/pull/117189/files
Please reload this pagehttps://github.com/python/cpython/pull/117189
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/neonene
neonenehttps://github.com/neonene
Mar 24, 2024https://github.com/python/cpython/pull/117189#issue-2204215746
Please reload this pagehttps://github.com/python/cpython/pull/117189
#117181https://github.com/python/cpython/pull/117181
9342336https://github.com/python/cpython/commit/9342336b29f4f0594ac8a5fb82e5ea5d99419143
Convert _ctypes extension module to multi-phase init #117142https://github.com/python/cpython/issues/117142
Please reload this pagehttps://github.com/python/cpython/pull/117189
neonenehttps://github.com/neonene
March 24, 2024 12:50https://github.com/python/cpython/pull/117189#commits-pushed-cec5ea2
https://github.com/neonene
add testhttps://github.com/python/cpython/pull/117189/commits/cec5ea268b02a27b442704cdf3e137caf07cfa8f
cec5ea2https://github.com/python/cpython/pull/117189/commits/cec5ea268b02a27b442704cdf3e137caf07cfa8f
https://github.com/neonene
move global vars to global statehttps://github.com/python/cpython/pull/117189/commits/c20a8d5bc2c24f592826a5c98c64e2a20e46e12f
c20a8d5https://github.com/python/cpython/pull/117189/commits/c20a8d5bc2c24f592826a5c98c64e2a20e46e12f
https://github.com/neonene
globals-to-fix.tsvhttps://github.com/python/cpython/pull/117189/commits/2feb00856bb426f29d0eebc1f9f0f11328e41b9e
2feb008https://github.com/python/cpython/pull/117189/commits/2feb00856bb426f29d0eebc1f9f0f11328e41b9e
https://github.com/neonene
prepend module state to func argshttps://github.com/python/cpython/pull/117189/commits/cb9e97dfad44589511f3ddf474bc76dcaa6917ac
cb9e97dhttps://github.com/python/cpython/pull/117189/commits/cb9e97dfad44589511f3ddf474bc76dcaa6917ac
https://github.com/neonene
split GenericPyCData_new()https://github.com/python/cpython/pull/117189/commits/b1e56290673e0245ec6ec65c1518a032a49f3366
b1e5629https://github.com/python/cpython/pull/117189/commits/b1e56290673e0245ec6ec65c1518a032a49f3366
https://github.com/neonene
add missing function arg: modulehttps://github.com/python/cpython/pull/117189/commits/b2adc1ffdf75520be1b9beee6c43ba8f0aecaab0
b2adc1fhttps://github.com/python/cpython/pull/117189/commits/b2adc1ffdf75520be1b9beee6c43ba8f0aecaab0
https://github.com/neonene
un-Yoda cond, curly braceshttps://github.com/python/cpython/pull/117189/commits/9342336b29f4f0594ac8a5fb82e5ea5d99419143
9342336https://github.com/python/cpython/pull/117189/commits/9342336b29f4f0594ac8a5fb82e5ea5d99419143
https://github.com/neonene
neonenehttps://github.com/neonene
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownerhttps://github.com/python/cpython/blob/d610d821fd210dce63a1132c274ffdf8acc510bc/.github/CODEOWNERS#L45
March 24, 2024 07:02https://github.com/python/cpython/pull/117189#event-12225948113
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Mar 24, 2024https://github.com/python/cpython/pull/117189#event-12225948294
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 24, 2024 https://github.com/python/cpython/pull/117189#ref-issue-2201423424
Convert _ctypes extension module to multi-phase init #117142 https://github.com/python/cpython/issues/117142
gh-117142: Port _ctypes to multi-phase init #117181 https://github.com/python/cpython/pull/117181
gh-117142: ctypes: Unify meta tp slot functions #117143 https://github.com/python/cpython/pull/117143
https://github.com/encukou
encukouhttps://github.com/encukou
March 25, 2024 15:57https://github.com/python/cpython/pull/117189#event-12236935985
https://github.com/encukou
encukouhttps://github.com/encukou
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Mar 25, 2024https://github.com/python/cpython/pull/117189#event-12236937096
neonenehttps://github.com/neonene
March 26, 2024 07:08https://github.com/python/cpython/pull/117189#commits-pushed-5767fc7
https://github.com/neonene
fix blankhttps://github.com/python/cpython/pull/117189/commits/5767fc78927ada1e6b96f672989875a774521a52
5767fc7https://github.com/python/cpython/pull/117189/commits/5767fc78927ada1e6b96f672989875a774521a52
https://github.com/neonene
Merge branch 'main' into ctypes_funchttps://github.com/python/cpython/pull/117189/commits/886aceae68d2f6712253e1e253c9bf33c26df4c3
886aceahttps://github.com/python/cpython/pull/117189/commits/886aceae68d2f6712253e1e253c9bf33c26df4c3
https://github.com/neonene
revert cec5ea2 (unnecessary test here)https://github.com/python/cpython/pull/117189/commits/2c8974bb260010c284bf9ffa959ece6f49032620
2c8974bhttps://github.com/python/cpython/pull/117189/commits/2c8974bb260010c284bf9ffa959ece6f49032620
https://github.com/neonene
neonenehttps://github.com/neonene
Mar 27, 2024https://github.com/python/cpython/pull/117189#event-12264375703
https://github.com/encukou
encukouhttps://github.com/encukou
Mar 28, 2024https://github.com/python/cpython/pull/117189#issuecomment-2024845901
PEP-7https://peps.python.org/7
Please reload this pagehttps://github.com/python/cpython/pull/117189
https://github.com/encukou
encukouhttps://github.com/encukou
Mar 28, 2024 https://github.com/python/cpython/pull/117189#pullrequestreview-1965660322
View reviewed changes https://github.com/python/cpython/pull/117189/files/2c8974bb260010c284bf9ffa959ece6f49032620
encukouhttps://github.com/encukou
https://github.com/python/cpython/pull/117189#pullrequestreview-1965660322
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/117189
Modules/_ctypes/_ctypes.chttps://github.com/python/cpython/pull/117189/files/cb9e97dfad44589511f3ddf474bc76dcaa6917ac..b1e56290673e0245ec6ec65c1518a032a49f3366#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
Please reload this pagehttps://github.com/python/cpython/pull/117189
Modules/_ctypes/callproc.chttps://github.com/python/cpython/pull/117189/files/b1e56290673e0245ec6ec65c1518a032a49f3366..b2adc1ffdf75520be1b9beee6c43ba8f0aecaab0#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
Please reload this pagehttps://github.com/python/cpython/pull/117189
Modules/_ctypes/_ctypes.chttps://github.com/python/cpython/pull/117189/files/b2adc1ffdf75520be1b9beee6c43ba8f0aecaab0..9342336b29f4f0594ac8a5fb82e5ea5d99419143#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4
Please reload this pagehttps://github.com/python/cpython/pull/117189
neonenehttps://github.com/neonene
March 29, 2024 14:04https://github.com/python/cpython/pull/117189#commits-pushed-52303c5
https://github.com/neonene
restore create_pointer_type(NULL, ...https://github.com/python/cpython/pull/117189/commits/52303c5456197debc8f3d293d5fb031bbc216742
52303c5https://github.com/python/cpython/pull/117189/commits/52303c5456197debc8f3d293d5fb031bbc216742
https://github.com/neonene
rename: generic_pycdata_new()https://github.com/python/cpython/pull/117189/commits/44b6095f6ae24d3f6b8f103eccecc1061f4f24dd
44b6095https://github.com/python/cpython/pull/117189/commits/44b6095f6ae24d3f6b8f103eccecc1061f4f24dd
https://github.com/encukou
encukouhttps://github.com/encukou
7e2fef8https://github.com/python/cpython/commit/7e2fef865899837c47e91ef0180fa59eb03e840b
Mar 29, 2024https://github.com/python/cpython/pull/117189#event-12293250558
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Mar 29, 2024https://github.com/python/cpython/pull/117189#event-12293250943
https://github.com/encukou
encukouhttps://github.com/encukou
Mar 29, 2024https://github.com/python/cpython/pull/117189#issuecomment-2026954857
Please reload this pagehttps://github.com/python/cpython/pull/117189
https://github.com/neonene
neonenehttps://github.com/neonene
March 29, 2024 10:29https://github.com/python/cpython/pull/117189#event-12293685804
NGRsoftlabhttps://github.com/NGRsoftlab
Apr 2, 2024 https://github.com/python/cpython/pull/117189#ref-commit-1b5fe4c
https://github.com/ngr-ilmarh
Squashed commit of the following:https://github.com/NGRsoftlab/cpython/commit/1b5fe4cad096e32efee3a0477ef6f277ec2a2b96
1b5fe4chttps://github.com/NGRsoftlab/cpython/commit/1b5fe4cad096e32efee3a0477ef6f277ec2a2b96
NGRsoftlabhttps://github.com/NGRsoftlab
Apr 2, 2024 https://github.com/python/cpython/pull/117189#ref-commit-a016a54
https://github.com/ngr-ilmarh
Squashed commit of the following:https://github.com/NGRsoftlab/cpython/commit/a016a5413a6d8bd02939a6fb9afef90dbbb2fb54
a016a54https://github.com/NGRsoftlab/cpython/commit/a016a5413a6d8bd02939a6fb9afef90dbbb2fb54
diegorussohttps://github.com/diegorusso
Apr 17, 2024 https://github.com/python/cpython/pull/117189#ref-commit-09bae85
https://github.com/neonene
https://github.com/diegorusso
pythongh-117142https://github.com/python/cpython/issues/117142
: ctypes: Migrate global vars to module state (https://github.com/diegorusso/cpython/commit/09bae851b3f9ce8a6e838ebcf4d375e29b3f80b7
pythonG…https://github.com/python/cpython/pull/117189
09bae85https://github.com/diegorusso/cpython/commit/09bae851b3f9ce8a6e838ebcf4d375e29b3f80b7
…H-117189https://github.com/python/cpython/pull/117189
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%2F117189
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/117189/files/2c8974bb260010c284bf9ffa959ece6f49032620
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/117189
https://github.com/neonene
https://github.com/encukou
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.