[issue23629] Default __sizeof__ is wrong for var-sized objects
Roundup Robot added the comment: New changeset dbd48b22b477 by Antoine Pitrou in branch '2.7': Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. https://hg.python.org/cpython/rev/dbd48b22b477 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23629 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23629] Default __sizeof__ is wrong for var-sized objects
Roundup Robot added the comment: New changeset f9afa4f87570 by Antoine Pitrou in branch '3.4': Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. https://hg.python.org/cpython/rev/f9afa4f87570 New changeset 9994e0172a0c by Antoine Pitrou in branch 'default': Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. https://hg.python.org/cpython/rev/9994e0172a0c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23629 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23629] Default __sizeof__ is wrong for var-sized objects
Serhiy Storchaka added the comment: 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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23629 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23629] Default __sizeof__ is wrong for var-sized objects
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23629 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23629] Default __sizeof__ is wrong for var-sized objects
New submission from Antoine Pitrou: In the stdlib, this only appears with the memoryview object, but third-party types can be affected. Attaching patch. -- components: Interpreter Core messages: 237776 nosy: pitrou, serhiy.storchaka, skrah priority: normal severity: normal stage: patch review status: open title: Default __sizeof__ is wrong for var-sized objects type: behavior versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23629 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23629] Default __sizeof__ is wrong for var-sized objects
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +patch Added file: http://bugs.python.org/file38422/sizeof_var_obj.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23629 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23629] Default __sizeof__ is wrong for var-sized objects
Serhiy Storchaka added the comment: Ah, tests for PyStructSequence types already exist (tests for sys.flags and sys.float_info). The patch LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23629 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23629] Default __sizeof__ is wrong for var-sized objects
Antoine Pitrou added the comment: Good, committed. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23629 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com