[issue19048] itertools.tee doesn't have a __sizeof__ method
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Sep 19 19:47:50 CEST 2013
Amaury Forgeot d'Arc added the comment:
getsizeof() is interesting only if it gives sensible results when used correctly, especially if you want to sum these values and get a global memory usage.
One usage is to traverse objects through gc.get_referents(); in this case the definition above is correct.
Now, are you suggesting to traverse objects differently? With dir(), or __dict__?
(btw, this discussion explains why pypy still does not implement getsizeof())
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19048>
_______________________________________
More information about the Python-bugs-list
mailing list