[Python-3000] Removing __del__

Giovanni Bajo rasky at develer.com
Sat Sep 23 00:16:58 CEST 2006


Raymond Hettinger wrote:

> Is there anything vital that could be done with a __close__ method
> that can't already be done with a weakref callback?  We aren't going
> to need it.

It can't be done with the same cleaness and easyness. It will require more
convoluted and complex code. It will require people to understand weakrefs in
the first place.

Did you actually read my posts where I have shown some legitimate use cases of
__del__ which can't be substituted with short and elegant enough code?

Giovanni Bajo



More information about the Python-3000 mailing list