This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients loewis, pitrou, rhettinger, serhiy.storchaka
Date 2013-09-19.14:02:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
> The point is that your patch breaks functions like gettotalsizeof().
> It makes impossible to get a total size of general object.

The thing is, "Total size" is generally meaningless. It can include
things such as the object's type, or anything transitively referenced
by the object, such as modules.

> It will be better to add gettotalsizeof() to the stdlib (or add an
> optional parameter to sys.getsizeof() for recursive counting).

This patch has *nothing* to do with recursive counting. It counts
the internal arrays of itertools.tee() as part of its memory size,
which is reasonable and expected. It does *not* count memory recursively:
it doesn't count the size of the itertools.tee()'s cached objects,
for example.

Recursive counting doesn't make sense with Python. Where do you stop
Date User Action Args
2013-09-19 14:02:21pitrousetrecipients: + pitrou, loewis, rhettinger, serhiy.storchaka
2013-09-19 14:02:21pitroulinkissue19048 messages
2013-09-19 14:02:20pitroucreate