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
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_n
> 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,
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
Bol