[Python-Dev] __traceback__ and reference cycles
Samuele Pedroni
pedronis at strakt.com
Tue Aug 9 13:37:17 CEST 2005
Tim Peters wrote:
>
> I can't think of a Python feature with a higher aggregate
> braincell_burned / benefit ratio than __del__ methods. If P3K retains
> them-- or maybe even before --we should consider taking "the Java
> dodge" on this one. That is, decree that henceforth a __del__ method
> will get invoked by magic at most once on any given object O, no
> matter how often O is resurrected.
>
Jython __del__ support is already layered on Java finalize, so that's
what one gets.
More information about the Python-Dev
mailing list