Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Doc/tutorial/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,12 @@ statement, whether an exception has occurred or not. When an exception has
occurred in the :keyword:`!try` clause and has not been handled by an
:keyword:`except` clause (or it has occurred in an :keyword:`!except` or
:keyword:`!else` clause), it is re-raised after the :keyword:`finally` clause has
been executed. The :keyword:`!finally` clause is also executed "on the way out"
when any other clause of the :keyword:`!try` statement is left via a
:keyword:`break`, :keyword:`continue` or :keyword:`return` statement. A more
complicated example::
been executed. The :keyword:`!finally` clause is also executed penultimately
when the :keyword:`!try` statement is left via a :keyword:`break`,
:keyword:`continue` or :keyword:`return` statement (thus a :keyword:`return`
in a :keyword:`finally` clause will execute before and instead of a
:keyword:`return` statement in a :keyword:`try` clause).
A more complicated example::

>>> def divide(x, y):
... try:
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Jon Anglin
Michele Angrisano
Ankur Ankan
Heidi Annexstad
David Antonini
Ramchandra Apte
Éric Araujo
Alexandru Ardelean
Expand Down