Try block problem

Markus Schaber use-net at
Tue Nov 20 21:52:32 CET 2001


Am 20 Nov 2001 12:07:57 +0100 schrieb Bernhard Herzog:

> > python choose to make the language that way.
> IIRC, the reason is that the precise sematics are not clear in every
> situation. For instance, what happens if an exception is raised in an
> except clause? Should the finally clause be executed in that case or
> not?

The semantics would have to be defined clear.

Java says: Whenever an exception appears in the try block, execute the
catch (except) block. Finally is executed always.


You don't have to be Microsoft to suck... but it helps.
(Tim Hammerquist in comp.lang.python)

More information about the Python-list mailing list