[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread Josh Rosenberg
Josh Rosenberg added the comment: You used explicit control flow keywords and you're surprised that it listened? Regardless, this is already documented https://docs.python.org/3/reference/compound_stmts.html#finally : "If the finally clause executes a return or break statement, the saved exce

[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread Ram Rachum
New submission from Ram Rachum: Today I spent 30 minutes because of weird behavior of `finally` when it has a `break` statement inside of it. (The behavior is that the exception gets suppressed, which I found unexpected.) I think this behavior should be documented. Example: c:\