[issue35916] 3.6.5 try/except/else/finally block executes code with typos, no errors

2019-02-06 Thread SilentGhost
SilentGhost added the comment: This seem to be the exactly documented behaviour. From https://docs.python.org/3.8/reference/compound_stmts.html#the-try-statement If finally is present, it specifies a ‘cleanup’ handler. The try clause is executed, including any except and else clauses. If an e

[issue35916] 3.6.5 try/except/else/finally block executes code with typos, no errors

2019-02-06 Thread DMITRY KOSHELEV
New submission from DMITRY KOSHELEV : Hello dear developer! I was playing with try/else/finally block and have found a bug: Inside of "else" or/and "except" I can do this 1 + print('Why do you print me?') + 1 this would print "Why do you print me?", in case if I have "finally" block with a