How to get memory size/usage of python object

Santiago Romero sromero at
Wed Jan 9 15:48:35 CET 2008

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

 Something like

> print sizeof(mylist)


> print sizeof(myclass_object)

 or something like that ...


More information about the Python-list mailing list