-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-128715: Expose ctypes.CField, with info attributes #128950
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
9d4be49
Restore max field size to sys.maxsize, as in Python 3.13 & below
encukou 09c81a8
PyCField: Split out bit/byte sizes/offsets.
encukou c397cf4
Expose CField
encukou 20ecd84
Add generic checks for all the test structs/unions
encukou 60e7b32
More testing
encukou 18334d8
Tests: import CField from ctypes
encukou 294b1b8
Clarify bit_offset
encukou 52114fa
Add a blurb
encukou 32d41f3
Regen
encukou f6f596f
Merge in the main branch
encukou 9b0e7eb
include <stdbool.h> in the common header
encukou d7bd835
Explicit casts
encukou 06458f6
Remove problematic assert
encukou bb41481
Merge in the main branch
encukou 91365b0
Add a test for the new info, and fix 'name' for nested anonymous structs
encukou b6d0510
Use subTest
encukou 6e279e2
Use PyUnicode_FromObject to get an exact PyUnicode
encukou 176de87
Normalize exception message
encukou 085720e
Fix refcounting
encukou 05c9591
Add pretty spaces
encukou b77074c
Merge in the main branch
encukou 4e95755
Fix bit-packed size test for big-endian machines
encukou 9cde20e
Remove `size` from _layout.py
encukou 34865e8
Fix bit_offset for big-endian structs (where bitfields are laid out f…
encukou 89fc44d
Merge in the main branch
encukou f327ffb
Name the magic constant
encukou 14270ad
Remove unused variable
encukou 7ce3cb9
Remove an unacceptable blank line
encukou d9d593c
Update documentation for tp_basicsize & tp_itemsize
encukou d52b8c9
Merge in the main branch
encukou 2cdcb5b
Skip "is in" test for bitfields of underaligned types (bug filed)
encukou 753090a
Merge in the main branch
encukou fde4204
Address review
encukou b2fddd8
One more alignment
encukou 5ce595c
Don't use `self` while it's NULL
encukou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Merge in the main branch
- Loading branch information
commit bb41481aec160b1b0209202cc655f251377fe294
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are viewing a condensed version of this merge commit. You can view the full changes here.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.