[Python-ideas] Make return inside a finally a SyntaxError
ryles
rylesny at gmail.com
Sun Jul 19 01:18:21 CEST 2009
On Jul 17, 8:18 pm, MRAB <pyt... at mrabarnett.plus.com> wrote:
> Isn't Python for consenting adults, or something like that? :-)
I agree. And the language reference does shed some light on this:
http://docs.python.org/reference/compound_stmts.html#the-try-statement
There are a lot of other things which are bad ideas as well. If you
personally don't want to permit return inside finally blocks, tools
like pylint or pychecker can be made to verify this.
More information about the Python-ideas
mailing list