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 arigo, brett.cannon, docs@python, fijall, lukasz.langa, pitrou
Date 2011-01-25.17:18:15
SpamBayes Score 0.000222985
Marked as misclassified No
Message-id <1295975892.3716.4.camel@localhost.localdomain>
In-reply-to <1295973438.5.0.625022653518.issue10994@psf.upfronthosting.co.za>
Content
> > 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).
> 
> It would be nice if this was a well-defined definition, but
> unfortunately it is not.

I didn't claim it was. Actually, if you read the rest of my message, I
did mention that PyPy could tweak the semantics if it made more sense.
So, of course, the more sharing and caching takes place, the less
obvious these semantics are, but even with CPython they are not obvious
anyway. It's not supposed to be an exact measurement for the common
developer, rather a hint that experts can use to tweak their data
structures and algorithms; you need to know details of your VM's
implementation to use that information.
History
Date User Action Args
2011-01-25 17:18:16pitrousetrecipients: + pitrou, brett.cannon, arigo, docs@python, lukasz.langa, fijall
2011-01-25 17:18:16pitroulinkissue10994 messages
2011-01-25 17:18:16pitroucreate