-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
gh-103743: Add PyUnstable_Object_GC_NewWithExtraData #103744
Merged
encukou
merged 9 commits into
python:main
from
jbradaric:jbradaric/obj-new-with-extra-data
May 2, 2023
Merged
gh-103743: Add PyUnstable_Object_GC_NewWithExtraData #103744
encukou
merged 9 commits into
python:main
from
jbradaric:jbradaric/obj-new-with-extra-data
May 2, 2023
Commits on Apr 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d644206 - Browse repository at this point
Copy the full SHA d644206View commit details
Commits on Apr 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 14975c0 - Browse repository at this point
Copy the full SHA 14975c0View commit details
Commits on Apr 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 52135dc - Browse repository at this point
Copy the full SHA 52135dcView commit details -
Move declaration to Include/cpython
That way it doesn't need the Py_LIMITED_API guard
Configuration menu - View commit details
-
Copy full SHA for e2c4b37 - Browse repository at this point
Copy the full SHA e2c4b37View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea9e9ac - Browse repository at this point
Copy the full SHA ea9e9acView commit details
Commits on Apr 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f9817ca - Browse repository at this point
Copy the full SHA f9817caView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0098d6 - Browse repository at this point
Copy the full SHA f0098d6View commit details -
This is a further workaround: this time for the fact that we can't rely on tp_alloc, which zeroes the memory (including memory for subclasses, like slots in the test) for normal classes. For the test type, this means the instances aren't initialized twice (once in PyUnstable_Object_GC_NewWithExtraData, once again with PyObject_Init after zeroing). Initializing twice throws off the global refcount total in debug builds.
Configuration menu - View commit details
-
Copy full SHA for cfa59d7 - Browse repository at this point
Copy the full SHA cfa59d7View commit details
Commits on Apr 29, 2023
-
Fix indentation and reword some parts to sound more natural. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Configuration menu - View commit details
-
Copy full SHA for 525705a - Browse repository at this point
Copy the full SHA 525705aView commit details
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.