How to get the size of an object?

Michael Hudson mwh at python.net
Mon Jun 4 14:23:02 EDT 2001


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.  Why do you want such a thing?

Cheers,
M.

-- 
  The only problem with Microsoft is they just have no taste.
              -- Steve Jobs, (From _Triumph of the Nerds_ PBS special)
                         and quoted by Aahz Maruch on comp.lang.python



More information about the Python-list mailing list