How to get the size of an object?

Simon Brunning SBrunning at trisystems.co.uk
Tue Jun 5 05:56:57 EDT 2001


> From:	stain at prigioniero.it [SMTP:stain at prigioniero.it]
> Is there a way to get the size of an object in Python?
> I mean something like 'sizeof' C operator... TIA
 
Marc-André Lemburg's mxTools extension includes a sizeof() function.

It's available as part of the eGenix mxBASE package, available from
<http://www.lemburg.com/files/python/>.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list