[issue15490] Correct __sizeof__ support for StringIO
Antoine Pitrou
report at bugs.python.org
Sun Sep 16 20:52:09 CEST 2012
Antoine Pitrou added the comment:
Well, I do think that it's not very important to make __sizeof__ strictly exact according to some specification. I'm also not sure we want to complicate maintenance when the calculation becomes tedious or difficult.
To me __sizeof__ is mostly an educational tool which gives a hint at the memory impact of an object, but cannot really convey a precise information except for trivial atomic types.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15490>
_______________________________________
More information about the Python-bugs-list
mailing list