Try block problem
Markus Schaber
use-net at schabi.de
Tue Nov 20 15:52:32 EST 2001
Hi,
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.
Gruß,
Markus
--
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