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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, loewis, pitrou, rhettinger, serhiy.storchaka
Date 2013-09-19.17:47:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379612870.78.0.983941461782.issue19048@psf.upfronthosting.co.za>
In-reply-to
Content
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())
History
Date User Action Args
2013-09-19 17:47:50amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, loewis, rhettinger, pitrou, serhiy.storchaka
2013-09-19 17:47:50amaury.forgeotdarcsetmessageid: <1379612870.78.0.983941461782.issue19048@psf.upfronthosting.co.za>
2013-09-19 17:47:50amaury.forgeotdarclinkissue19048 messages
2013-09-19 17:47:50amaury.forgeotdarccreate