try...finally is more powerful than I thought.
ykingma at accessforall.nl
Fri Nov 7 18:24:54 CET 2003
Jython once had a bug where it would not execute the outer finally
through a return, ie. in:
doSomething2() would not get executed.
The workaround was straightforward: save the return value in some local
variable and return at the end.
In case you like such puzzles, this is the test code:
Btw. CPython never failed a single test case in there.
email at xs4all.nl
More information about the Python-list