python sizeof ?

Fredrik Lundh fredrik at pythonware.com
Sun Apr 24 07:02:44 EDT 2005


"ajikoe at gmail.com"

> How can I get the size of an object in python..?

you can't, and the size in bytes is mostly meaningless.

if you're looking for the size of a serialized/marshalled python
object, use len().

> analog with c sizeof?

Python's not C.  for more discussion, see:

    http://www.artima.com/forums/flat.jsp?forum=181&thread=67617

</F>






More information about the Python-list mailing list