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-101266: Fix __sizeof__ for subclasses of int #101394
base: main
Are you sure you want to change the base?
Conversation
|
Darnit; this fails for |
That's because we had somewhat bogus numbers for I'm going to remove the "backport to 3.10" label: the bug does technically still exist in 3.10, but it's messier to fix - it looks like we would need to add a dedicated |
Thanks I will take a look |
|
@mdickinson We have to resolve the conflict before reviewing this PR. |


This PR fixes the behaviour of the
__sizeof__method (and hence the results returned bysys.getsizeof) for subclasses ofint.intandsetsubclass__sizeof__under-reports the instance dictionary pointer #101266