Destructor never called ???

Aahz aahz at pythoncraft.com
Fri Sep 20 10:58:47 EDT 2002


In article <buzi9.136158$pX1.4848554 at news2.tin.it>,
Alex Martelli  <aleax at aleax.it> wrote:
>Aahz wrote:
>>
>> There are several different issues.  First of all, __del__ does not get
>> called if an object is destroyed by GC (GC gets used to clean up cyclic
>> garbage).  Secondly, Jython does not use refcounting; it's pure GC, just
>
>Right, but, I'd put it differently: GC is inhibited from destroying
>objects whose types define a __del__ -- rather, it collects them into
>gc.garbage, because it can't know that finalizing them is safe.  

Thanks (and also to Tim) for correcting my sloppy writing.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Project Vote Smart: http://www.vote-smart.org/



More information about the Python-list mailing list