about try statement
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Sat Nov 12 04:20:08 EST 2005
Shi Mu enlightened us with:
> very hard for me to understand the difference between try...except
> and try...finally
Within a 'try' block, if an exception is called and a matching
'except' block is found, that block will be used to handle the
expression.
>From the documentation of the "return" keyword: "When return passes
control out of a try statement with a finally clause, that finally
clause is executed before really leaving the function." Note that
there is no talk about exceptions in this.
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
More information about the Python-list
mailing list