Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-103092: Ensure_ctypes.c static types are accessed via global state#113857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 5 commits intopython:mainfromneonene:ctypes_ready
Jan 22, 2024
Merged

gh-103092: Ensure_ctypes.c static types are accessed via global state#113857

vstinner merged 5 commits intopython:mainfromneonene:ctypes_ready
Jan 22, 2024

Conversation

neonene
Copy link
Contributor

@neoneneneonene commentedJan 9, 2024
edited by bedevere-appbot
Loading

This sets in place thectypes_state *st = GLOBAL_STATE() statements to make the coming PRs smaller. Suggested by@encukou:#113630 (comment)

cc@erlend-aasland

@bedevere-appbedevere-appbot mentioned this pull requestJan 9, 2024
25 tasks
@neoneneneonene changed the titlegh-103092: Ensure '_ctypes.c' static types are accessed via global stategh-103092: Ensure_ctypes.c static types are accessed via global stateJan 9, 2024
@erlend-aasland
Copy link
Contributor

See also ongoing work by@aisk in#113620. Perhaps you could coordinate your efforts?

@encukou
Copy link
Member

@erlend-aasland, do you want to review these two PRs?
If you merge one I'll be happy to resolve the conflicts on the other one.

erlend-aasland reacted with thumbs up emoji

@erlend-aasland
Copy link
Contributor

@erlend-aasland, do you want to review these two PRs? If you merge one I'll be happy to resolve the conflicts on the other one.

Sure, I'll get to it later today.

@erlend-aaslanderlend-aasland self-assigned thisJan 10, 2024
@neonene
Copy link
ContributorAuthor

Done. I'll update this after#113620 is merged.

erlend-aasland reacted with thumbs up emoji

@neoneneneonene changed the titlegh-103092: Ensure_ctypes.c static types are accessed via global stateEnsure_ctypes.c static types are accessed via global stateJan 18, 2024
@neoneneneonene reopened thisJan 18, 2024
@neoneneneonene changed the titleEnsure_ctypes.c static types are accessed via global stategh-103092: Ensure_ctypes.c static types are accessed via global stateJan 18, 2024
@neonene
Copy link
ContributorAuthor

I think this is ready for review. Sorry for mistakenly wiping out old commits (from web).

Actual diff witha1ade06:

--- Modules/_ctypes/_ctypes.c+++ Modules/_ctypes/_ctypes.c@@ -128,13 +128,6 @@-static PyTypeObject UnionType_Type; static PyTypeObject Union_Type; static PyTypeObject Struct_Type; static PyTypeObject Simple_Type;  ctypes_state global_state = {     .PyCStgDict_Type = &PyCStgDict_Type,-    .PyCStructType_Type = &PyCStructType_Type,-    .UnionType_Type = &UnionType_Type,-    .PyCPointerType_Type = &PyCPointerType_Type,-    .PyCArrayType_Type = &PyCArrayType_Type,-    .PyCSimpleType_Type = &PyCSimpleType_Type,-    .PyCFuncPtrType_Type = &PyCFuncPtrType_Type,

@erlend-aasland
Copy link
Contributor

Thanks, Victor!

@vstinner
Copy link
Member

I merged this change which is a good start for futher work. I closed my similar duplicated (less complete) PR.

@neoneneneonene deleted the ctypes_ready branchJanuary 22, 2024 17:49
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@aiskaiskaisk left review comments

@erlend-aaslanderlend-aaslanderlend-aasland left review comments

@encukouencukouAwaiting requested review from encukou

Assignees

@erlend-aaslanderlend-aasland

Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@neonene@erlend-aasland@encukou@vstinner@aisk

[8]ページ先頭

©2009-2025 Movatter.jp