List size versus list allocation
Peter Otten
__peter__ at web.de
Sun May 2 12:24:37 EDT 2010
Christian Heimes wrote:
>>>> def slots(lst):
> ... return (sys.getsizeof(lst) - sys.getsizeof([])) /
D'oh!
Peter
More information about the Python-list
mailing list