Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-92678: Fix tp_dictoffset inheritance.#95596
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
gh-92678: Fix tp_dictoffset inheritance.#95596
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…re their dictionary at the end of the struct.
encukou left a comment
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.
markshannon commentedAug 3, 2022
Any ideas? I'd be very happy to add more tests |
ericsnowcurrently left a comment
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 forweaklistoffset) that should definitely be address one way or another.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
miss-islington commentedAug 3, 2022
Thanks@markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
miss-islington commentedAug 3, 2022
Sorry,@markshannon, I could not cleanly backport this to |
* 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.
vstinner commentedAug 3, 2022
I cannot review the implementation, but thanks for adding tests!#92678 looked complicated and serious. Thanks for fixing it ;-) |
terryjreedy commentedFeb 18, 2025
PR#95604 is merged 3.11 backport. |
Uh oh!
There was an error while loading.Please reload this page.
Restores the 3.10 behavior for inheriting
tp_dictoffsetinvolving multiple inheritance of C extension classes.