[issue3690] sys.getsizeof wrong for Py3k bool objects

Martin v. Löwis report at bugs.python.org
Sun Sep 7 18:45:03 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

I'm not sure this is a bug. sys.getsizeof doesn't take padding in the
malloc implementation into account, either, so a long object that
accounts to 22 bytes (such as the number 1) uses at least 24 bytes,
also. In any case, I also think this doesn't matter much either way.

----------
nosy: +loewis

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3690>
_______________________________________


More information about the Python-bugs-list mailing list