On Fri, 18 Jul 2008 11:31:20 -0700, Jason Baker wrote:

> I have a class that I need to do some finalization on when it dies.  I
> know I can use the __del__ method, but I seem to recall that it
> impedes garbage collection.  Is this the case?

`__del__()` is not a deterministic destructor.  So forget about reliable
automatic clean up.  Do it yourself with an explicit call to a `close()`
method or something like that.

Ciao,
        Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to