This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author SilentGhost
Recipients SilentGhost, dmitry_koshelev
Date 2019-02-06.16:26:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549470382.59.0.452980562742.issue35916@roundup.psfhosted.org>
In-reply-to
Content
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 exception occurs in any of the clauses and is not handled, the exception is temporarily saved. The finally clause is executed. If there is a saved exception it is re-raised at the end of the finally clause. If the finally clause raises another exception, the saved exception is set as the context of the new exception. If the finally clause executes a return, break or continue statement, the saved exception is discarded.
History
Date User Action Args
2019-02-06 16:26:24SilentGhostsetrecipients: + SilentGhost, dmitry_koshelev
2019-02-06 16:26:22SilentGhostsetmessageid: <1549470382.59.0.452980562742.issue35916@roundup.psfhosted.org>
2019-02-06 16:26:22SilentGhostlinkissue35916 messages
2019-02-06 16:26:22SilentGhostcreate