About python 2.5 and its try statement.
Fredrik Lundh
fredrik at pythonware.com
Mon Jun 26 08:59:37 EDT 2006
"defcon8" wrote:
>I can't remember the proposal number, but many of you reading will have
> probably read the features that will be added to python 2.5. The actual
> part I wanted to talk about was the finally part of try. Isn't it
> totally defeating a compiler's job by executing the finally part even
> if there is an error in the previous statements? Or have I understood
> something wrong?
sounds like you're confusing compilation and execution, and compilation errors
(syntax errors) with runtime errors (exceptions).
try-finally is a runtime thing, not a compile time thing.
</F>
More information about the Python-list
mailing list