Re: Is there any way to find out sizeof an object

2008-06-26 Thread zooko
Here are a few little tools that I developed to do this kind of thing: http://allmydata.org/trac/pyutil/browser/pyutil/pyutil/memutil.py Regards, Zooko -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there any way to find out sizeof an object

2008-06-24 Thread Martin v. Löwis
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 In Python 2.6, you

Re: Is there any way to find out sizeof an object

2008-06-24 Thread Paddy
On Jun 24, 6:00 am, srinivasan srinivas [EMAIL PROTECTED] wrote: 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    

Is there any way to find out sizeof an object

2008-06-23 Thread srinivasan srinivas
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