Logging in __del__()

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Jul 16 10:35:35 EDT 2008


On Wed, 16 Jul 2008 12:38:50 +0100, Robert Rawlins wrote:

> So, am I right to assume that python will still handle its garbage disposal
> if I implement __del__(), it just handles circular references in a slightly
> different way, but to the same effect. Right?

No.  Circular references in objects with a `__del__()` implementation are
not collected!  Why are you using `__del__()` anyway?  Are you aware of
the promises that are *not* made!  It's not guaranteed when the method
is called nor if it is called at all!

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list