How to get the size of an object?

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Jun 5 10:37:47 CEST 2001


Michael Hudson <mwh at python.net> writes:

> stain at prigioniero.it (Nicola S.) writes:
> 
> > Is there a way to get the size of an object in Python?
> > I mean something like 'sizeof' C operator... TIA
> 
> Roughly speaking, no.  

To put that differently: the size of an instance object is 16.

Regards,
Martin



More information about the Python-list mailing list