[Python-ideas] Make return inside a finally a SyntaxError

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jul 19 03:34:53 CEST 2009


Michael Foord wrote:
> 
> Exceptions that occur in the try block are 
> re-raised once the finally has completed.

That's correct if you understand "completed" to mean
"by falling off the end".

A doc enhancement is perhaps in order to make that
clearer.

-- 
Greg



More information about the Python-ideas mailing list