Advice needed on __del__

Fredrik Lundh fredrik at pythonware.com
Tue May 10 02:36:03 EDT 2005


"phil" wrote:

> If someone doesn't know the answer to this question or if noone
> knows the answer to this question

there is no answer to your question. Python works as specified in
the language specification, and the language specification makes
no guarantees.  changes in the CPython interpreter has affected
finalization order before, and may do it again.  nobody will break
your code on purpose, but if it relies on implementation artefacts,
it will break, sooner or later.

you haven't answered my question, btw: why are you using __del__
to do something that the garbage collector should do for you?

</F>






More information about the Python-list mailing list