does python have useless destructors?
dkturner at telkomsa.net
Tue Jun 15 10:09:05 CEST 2004
> You're far more likely to succeed in changing exception handling
> semantics than general object handling semantics. If you're serious
> about fixing this hole in Python, write a PEP.
I agree that it would be far easier just to change the exception
In certain implementations, it would be very much harder to take the
next step towards reference counting objects with __del__.
So what I'll do is write a PEP to fix the exception handling semantics
in CPython, and hope that pressure from users who discover how much
easier it is to write RAII -style code will eventually introduce
reference counting to Jython and friends.
Oops, I revealed my Evil Master Plan...
More information about the Python-list