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 ncoghlan
Recipients ncoghlan, pitrou, rhettinger
Date 2010-12-18.06:11:37
SpamBayes Score 0.0059689074
Marked as misclassified No
Message-id <1292652699.49.0.598818711003.issue10725@psf.upfronthosting.co.za>
In-reply-to
Content
Indeed, getsizeof() on containers only gives the amount of memory consumed by the container itself (this can be difficult to figure out externally for potentially sparse containers like dicts), but leaves the question of the size of the referenced objects open.

Exposing the result of sys.getsizeof() on the cache may not be a bad idea, but the question would be which use cases are handled by that additional information which aren't adequately covered by the simple count of the cache entries.
History
Date User Action Args
2010-12-18 06:11:39ncoghlansetrecipients: + ncoghlan, rhettinger, pitrou
2010-12-18 06:11:39ncoghlansetmessageid: <1292652699.49.0.598818711003.issue10725@psf.upfronthosting.co.za>
2010-12-18 06:11:37ncoghlanlinkissue10725 messages
2010-12-18 06:11:37ncoghlancreate