Destructor never called ???

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

In article <buzi9.136158$pX1.4848554 at>,
Alex Martelli  <aleax at> 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           <*>

Project Vote Smart:

More information about the Python-list mailing list