[Python-3000] Removing __del__

Jim Jewett jimjjewett at gmail.com
Tue Sep 26 15:22:21 CEST 2006

On 9/26/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.

This would let you use a bound method again, but ...

Given this complexity, what advantage would it have over __del__, let
alone __close__?


More information about the Python-3000 mailing list