<p dir="ltr"><br>
On Feb 26, 2015 4:00 AM, "Cem Karan" <<a href="mailto:cfkaran2@gmail.com">cfkaran2@gmail.com</a>> wrote:<br>
><br>
><br>
> On Feb 26, 2015, at 12:36 AM, Gregory Ewing <<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>> wrote:<br>
><br>
> > Cem Karan wrote:<br>
> >> I think I see what you're talking about now.  Does WeakMethod<br>
> >> (<a href="https://docs.python.org/3/library/weakref.html#weakref.WeakMethod">https://docs.python.org/3/library/weakref.html#weakref.WeakMethod</a>) solve<br>
> >> this problem?<br>
> ><br>
> > Yes, that looks like it would work.<br>
><br>
><br>
> Cool!</p>
<p dir="ltr">Sometimes I wonder whether anybody reads my posts. I suggested a solution involving WeakMethod four days ago that additionally extends the concept to non-method callbacks (requiring a small amount of extra effort from the client in those cases, but I think that is unavoidable. There is no way that the framework can determine the appropriate lifetime for a closure-based callback.)</p>