"Neal Norwitz" email@example.com writes:
On 4/3/06, Michael Hudson firstname.lastname@example.org wrote:
Greg Ewing email@example.com writes:
Michael Hudson wrote:
And if we want to have a version of __del__ that can't reference 'self', we have it already: weakrefs with callbacks.
Does that actually work at the moment? Last I heard, there was some issue with gc and weakref callbacks as well. Has that been resolved?
Talk about FUD. Yes, it works, as far as I know.
Not sure if everyone is talking about the same thing. This is still a problem (at least for me): http://svn.python.org/projects/python/trunk/Lib/test/crashers/weakref_in_del...
It creates a weakref to self in __del__.
Yes, but that has nothing to do with the cycle collector. I even have a way to fix it, but I don't know if it breaks anything else...