-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-103509: PEP 697 -- Limited C API for Extending Opaque Types #103511
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
29 commits
Select commit
Hold shift + click to select a range
a9679fa
gh-103509: PEP 697 -- Limited C API for Extending Opaque Types
encukou b8dc072
Add a blurb
encukou 1fc5c52
Fix PyMember_SetOne error return (thanks MSVC!)
encukou 075ca51
Add What's New entry
encukou 439de5d
Fix warning in tests
encukou 291731b
Work around lack of alignof & max_align_t
encukou 2ba8084
Use the same Sphinx role for Py_TPFLAGS_ITEMS_AT_END as for other typ…
encukou b03d431
Add ALIGNOF_MAX_ALIGN_T to configure & PC/pyconfig.h
encukou ec9d5a8
Use ALIGNOF_MAX_ALIGN_T
encukou 5cab814
Fix typo
encukou 3ade585
Don't include <stdalign.h>, it's not always available on Windows
encukou 986bf26
Define ALIGNOF_MAX_ALIGN_T with long double if it's not available
encukou e7838ee
tests: Compute data_offset in C to avoid overflow issues
encukou 93d86d1
Merge branch 'main' into extend-opaque-sq
arhadthedev 266834d
Cast to `char*` for pointer arithmetic
encukou f968206
Fix ALIGNOF_MAX_ALIGN_T value for 32-bit Windows
encukou 37158af
Fix C++ behaviour and comments for ALIGNOF_MAX_ALIGN_T
encukou 402ecc6
Merge branch 'main' into extend-opaque-sq
encukou 1701688
Don't rely on PyObject* being aligned to ALIGNOF_MAX_ALIGN_T
encukou db5d49b
Merge in main branch
encukou 9d9911d
Apply suggestions from code review
encukou 06bcf5b
Raise TypeError on missing flag
encukou 0b69748
Wrap new tests in a class
encukou 33c5258
Use PyModule_AddIntMacro in tests
encukou 88dade7
Test failure of extending non-ITEMS_AT_END variable-sized types
encukou 8720b25
Test error cases around members
encukou 0474e69
Merge in the main branch
encukou a975de9
Apply suggestions from code review
encukou b9ddf21
Merge in the main branch
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
Don't rely on PyObject* being aligned to ALIGNOF_MAX_ALIGN_T
Smaller objects might not be aligned to ALIGNOF_MAX_ALIGN_T. The offsets calculated for PEP 697 should be aligned, though.
- Loading branch information
commit 1701688e3f96717d916d642ab808a00d38f00e6c
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
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.