How to get memory size/usage of python object

Santiago Romero sromero at gmail.com
Wed Jan 9 09:48:35 EST 2008


 Is there a way to check the REAL size in memory of a python object?

 Something like

> print sizeof(mylist)

 or

> print sizeof(myclass_object)

 or something like that ...

 Thanks.



More information about the Python-list mailing list