[Python-3000] Removing __del__

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 26 11:57:13 CEST 2006

Giovanni Bajo wrote:
> I assert that they hide bugs much better than
> __del__ does (it's pretty easy to find an offending __del__ by looking at
> gc.garbage,

It should be feasible to modify the cyclic GC to
detect groups of objects that are only being kept
alive by references from the finalizer list. These
could be treated the same way as __del__-containing
cycles are now, and moved to a garbage list.


More information about the Python-3000 mailing list