[Python-ideas] Make return inside a finally a SyntaxError
Jan Kaliszewski
zuo at chopin.edu.pl
Sat Jul 18 15:14:11 CEST 2009
Michael Foord <fuzzyman at gmail.com> wrote:
> 2009/7/18 Stephen J. Turnbull <stephen at xemacs.org>
>
>> That would really piss off anybody who deliberately put a return in a
>> finally block, I think.
>>
>>
> I think the current behavior (swallowing an exception that most people
> would
> expect to be re-raised) surprises and pisses people off. Guido has
> already
> made a pronouncement so not much point continuing this discussion.
But maybe we can convince BDFL that it should be -- not SyntaxError but
-- RuntimeError?
*j
More information about the Python-ideas
mailing list