Message198102
> The problem is that that definition isn't helpful.
> If we ever change itertools.tee to use non-PyObjects internally, s
> suddenly its sys.getsizeof() would have to return much larger numbers
> despite visible behaviour not having changed at all (and despite the
> memory overhead being actually lower).
I see no problem with that. If the internal representation changes, nobody should be surprised if sizeof changes.
> I would hope it gives remotely useful information about the passed object.
It certainly does: it reports the memory consumption of the object itself,
not counting the memory of other objects.
I proposed a precise definition of what "an other object" is. If you don't like it,
please propose a different definition that still allows to automatically sum up the
memory of a graph of objects. |
|
Date |
User |
Action |
Args |
2013-09-19 18:06:32 | loewis | set | recipients:
+ loewis, rhettinger, amaury.forgeotdarc, pitrou, serhiy.storchaka |
2013-09-19 18:06:32 | loewis | set | messageid: <1379613992.26.0.266953054997.issue19048@psf.upfronthosting.co.za> |
2013-09-19 18:06:32 | loewis | link | issue19048 messages |
2013-09-19 18:06:32 | loewis | create | |
|