[Python-3000] Alternatives for __del__

Guido van Rossum guido at python.org
Wed May 16 16:48:24 CEST 2007

Since no PEP has been submitted about eliminating __del__, __del__
remains, by default, in Python 3000. I am more comfortable with this

However, I still welcome an informational PEP describing the "best
practices" for avoiding it by using weak references, including some
support code to be added to weakref.py (this could probably be added
to Python 2.6 as well; and for earlier releases it could be made
available as a 3rd party add-on or as a "recipe" in the online Python
Cookbook (http://aspn.activestate.com/ASPN/Python/Cookbook/).

I am hoping that someone besides Raymond will volunteer to write such
a PEP; his busy schedule makes it unlikely that he will have the time
necessary to devote to this project.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-3000 mailing list