[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))
Change by Mohammad Dehghan : -- assignee: docs@python components: Documentation nosy: Mohammad Dehghan, docs@python priority: normal severity: normal status: open title: Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points)) type: behavior versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue38130> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))
New submission from Mohammad Dehghan : In section 8.6 of the tutorials page (https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions), the first item of the bullet points explaining some situations about finally clause, states that > If an exception occurs during execution of the try clause, the exception may > be handled by an except clause. **In all cases, the exception is re-raised > after the finally clause has been executed.** This is wrong, since the exception is not re-raised if an `except` clause handles the exception. -- nosy: -docs@python ___ Python tracker <https://bugs.python.org/issue38130> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))
Mohammad Dehghan added the comment: I submitted a PR for this: https://github.com/python/cpython/pull/16016 -- ___ Python tracker <https://bugs.python.org/issue38130> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com