[Python-3000] Removing __del__

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 27 02:36:41 CEST 2006


Nick Coghlan wrote:
> the weakref (WR) and the callback (CB) are in a 
> cycle with each other, so even after CB is invoked and removes WR from the 
> global list of finalizers, the two objects won't go away until the next GC 
> collection cycle.

The CB can drop its reference to the WR when it's invoked.

--
Greg



More information about the Python-3000 mailing list