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
Default __sizeof__ is wrong for var-sized objects #67817
Comments
In the stdlib, this only appears with the memoryview object, but third-party types can be affected. Attaching patch. |
Good catch! How it worked before? Now we can remove __sizeof__ implementations for tuples and bytes. Could you please add sizeof test for PyStructSequence types? |
Ah, tests for PyStructSequence types already exist (tests for sys.flags and sys.float_info). The patch LGTM. |
New changeset f9afa4f87570 by Antoine Pitrou in branch '3.4': New changeset 9994e0172a0c by Antoine Pitrou in branch 'default': |
New changeset dbd48b22b477 by Antoine Pitrou in branch '2.7': |
Good, committed. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: