Python 2.0

Hrvoje Niksic hniksic at
Thu Jun 3 13:32:07 EDT 1999

"Barry A. Warsaw" <bwarsaw at> writes:

> JPython used to call __del__() when the Java object (PyInstance) was
> finalized.  See my previous message on the subject for why this has
> been commented out.  I don't believe __del__() is ever invoked now
> in JPython.

Isn't that a case of sacrificing (Python) correctness for (Java)
efficiency?  The code that relies on __del__() getting called
eventually will lose in JPython.

More information about the Python-list mailing list