GeezerVison is showing github.com — gh-92678: Fix tp_dictoffset inheritance. by markshannon · Pull Request #95596 · python/cpython
Conversation
markshannon
commented
Aug 3, 2022
•
edited by bedevere-bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Restores the 3.10 behavior for inheriting tp_dictoffset involving multiple inheritance of C extension classes.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…re their dictionary at the end of the struct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't check there aren't more edge cases, but this is an improvement, and should address the pybind11 issue.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
I can't check there aren't more edge cases
Any ideas? I'd be very happy to add more tests
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly LGTM
The new test seems fine, but I didn't look at it thoroughly. I left one comment (about a second case for weaklistoffset) that should definitely be address one way or another.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Sorry, @markshannon, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 906e4509328917fe9951f85457897f6a841e0529 3.11
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
markshannon
added a commit
to faster-cpython/cpython
that referenced
this pull request
Aug 3, 2022
* Add test for inheriting explicit __dict__ and weakref.
* Restore 3.10 behavior for multiple inheritance of C extension classes that store their dictionary at the end of the struct.
|
I cannot review the implementation, but thanks for adding tests! #92678 looked complicated and serious. Thanks for fixing it ;-)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
markshannon
added a commit
that referenced
this pull request
Aug 4, 2022
* Add test for inheriting explicit __dict__ and weakref.
* Restore 3.10 behavior for multiple inheritance of C extension classes that store their dictionary at the end of the struct.
terryjreedy
changed the title
GH-92678: Fix tp_dictoffset inheritance.
gh-92678: Fix tp_dictoffset inheritance.
Feb 18, 2025
|
PR #95604 is merged 3.11 backport.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
encukou
encukou approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|