Weakref.ref callbacks and eliminating __del__ methods

Alex Martelli aleaxit at yahoo.com
Sun Jan 23 18:06:01 EST 2005

Mike C. Fletcher <mcfletch at rogers.com> wrote:

>         weakref.ref( self, self.close )
> but the self.close reference in the instance is going away *before* the
> object is called.

Uh -- what's holding on to this weakref.ref instance?  I guess the
weakreference _itself_ is going away right after being created...


More information about the Python-list mailing list