[Python-3000] Removing __del__
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Sep 27 02:36:21 CEST 2006
Jim Jewett wrote:
> Given this complexity, what advantage would it have over __del__, let
> alone __close__?
It wouldn't constitute an attractive nuisance, since
it would force you to think about which pieces of
information the finalizer really needs. This is
something you need to do anyway if you're to ensure
you don't get into trouble using __del__.
The supposed "easiness" of __del__ is really just
sloppiness that will turn around and bite you
eventually (if you'll excuse the mixed metaphor).
--
Greg
More information about the Python-3000
mailing list