On Fri, Jul 17, 2009 at 7:13 PM, Guido van Rossum <guido@python.org> wrote:
Since you agree that an exception raised in a finally block has
well-defined semantics, why wouldn't a return statement?)

I think that to some extent exception > return. That is in both of these cases

   try:
     return
   finally:
     raise Exception()

   try:
     raise Exception()
   finally:
     return

it makes sense to me that the caller would see an exception. I disagree that it should be a syntax error. But it could be a runtime error when an exception would get silently eaten.

--- Bruce