From: news at dorb.com (Darrell)
Date: Wed, 7 Apr 1999 13:22:48 -0400
Subject: Chaning instance methods
References: <tx3soadh4jj.fsf@hog.ldgo.columbia.edu> <m0zO2.1238$YU1.2534@newsr2.twcny.rr.com>
Message-ID: <zoMO2.1302$YU1.2732@newsr2.twcny.rr.com>
X-UID: 394                                                  

As Tim says "so you've created a piece of immortal cyclic trash"
I love the way that sounds.
It sure would be nice to be able to walk a list of allocated memory and
clean it up if you want to. Or discover what objects are eating the memory
you have.


> Hope this helps.
>
> >>> class X:
> ...     def y(self):
> ...             print 'y1'
> ...
> >>> x=X()
> >>> x.y()
> y1
> >>> def y2(self=x):
> ...     print 'y2'
> ...
> >>> setattr(x,'y',y2)
> >>> x.y()
> y2
> >>>
>
>






