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 docs@python, fijall, lukasz.langa, pitrou
Date 2011-01-24.14:13:31
SpamBayes Score 0.008021467
Marked as misclassified No
Message-id <1295878409.3679.12.camel@localhost.localdomain>
In-reply-to <1295877929.5.0.527131313453.issue10994@psf.upfronthosting.co.za>
Content
> I suppose wrt getsizeof it's more of "if you provide us with a
> reasonable expectations, we can implement this" other than anything
> else.

The expectation is that it returns the memory footprint of the given
object, and only it (not taking into account sharing, caching,
dependencies or anything else). For example, an instance will not count
its attribute __dict__. But a str object will count its object header
plus the string payload, if the payload is private.

Of course, you are free to tweak these semantics for the PyPy
implementation.
History
Date User Action Args
2011-01-24 14:13:32pitrousetrecipients: + pitrou, docs@python, lukasz.langa, fijall
2011-01-24 14:13:31pitroulinkissue10994 messages
2011-01-24 14:13:31pitroucreate