[issue2898] Add memory footprint query

Martin v. Löwis report at bugs.python.org
Sat May 17 21:18:13 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

> Lists will need a custom tp_footprint then, too.

True.

> BTW, is a new slot necessary, or
> can it just be a type method called __sizeof__?

It wouldn't be a type method, but a regular method on the specific type,
right?

I think that would work as well.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2898>
__________________________________


More information about the Python-bugs-list mailing list