[issue15402] Correct __sizeof__ support for struct

Meador Inge report at bugs.python.org
Thu Jul 26 05:59:16 CEST 2012


Meador Inge <meadori at gmail.com> added the comment:

The attached patch fixes: (1) the test cases to make them exact (inspired by 'test_sys.py'), (2) the definition of 's_sizeof' to add the dummy parameter, and (3) simplifies the sizeof calculation using 's_len'.

----------
Added file: http://bugs.python.org/file26520/issue15402-redux-v1.patch

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


More information about the Python-bugs-list mailing list