sizeof?
Remco Gerlich
scarblac at pino.selwerd.nl
Mon Oct 9 19:52:45 EDT 2000
seung-won hwang <shwang5 at students.uiuc.edu> wrote in comp.lang.python:
> Is there any operator to measure the size of the object in Python
> something like sizeof in C? I couldn't find any from the book
> and documents I have. Thanks!
There is no way to find the exact number of memory bytes an object uses.
Consider that irrelevant.
To find the length of a list, or a tuple, or other sequences, use len().
Remco Gerlich
More information about the Python-list
mailing list