Is there any way to find out sizeof an object

Paddy paddy3118 at
Tue Jun 24 09:44:47 CEST 2008

On Jun 24, 6:00 am, srinivasan srinivas <sri_anna... at>
> Hi,
> I have written a class which has some attributes. I want to know how do i find out the size of an instance of this class??
> class T(object):
>     def __init__(self, fn_name, *args, **kwds):
>         self.fn_name = fn_name
>         self.args = args
>         self.kwds = kwds
> Thanks,
> Srini
>       Bollywood, fun, friendship, sports and more. You name it, we have it on

Check memory
Create a million
Check memory
Do maths!


- Paddy.

More information about the Python-list mailing list