Skip to content

Commit

Permalink
Fixed typo: 'to reraised -> to reraise' (python#2088)
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi authored Sep 26, 2021
1 parent b9b44c4 commit 8abbdd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pep-0654.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ together as the stack unwinds. Several real world use cases are listed below.
* **Multiple user callbacks fail.** Python's ``atexit.register()`` function
allows users to register functions that are called on system exit. If any of
them raise exceptions, only the last one is reraised, but it would be better
to reraised all of them together (see ``atexit`` documentation [5]_.)
to reraise all of them together (see ``atexit`` documentation [5]_.)
Similarly, the pytest library allows users to register finalizers which
are executed at teardown. If more than one of these finalizers raises an
exception, only the first is reported to the user. This can be improved with
Expand Down Expand Up @@ -1148,7 +1148,7 @@ the help of the reference implementation [11]_.
It has the builtin ``ExceptionGroup`` along with the changes to the traceback
formatting code, in addition to the grammar, compiler and interpreter changes
required to support ``except*``. ``BaseExceptionGroup`` will be added
soon.
soon.

Two opcodes were added: one implements the exception type match check via
``ExceptionGroup.split()``, and the other is used at the end of a ``try-except``
Expand Down Expand Up @@ -1280,7 +1280,7 @@ Applying an ``except*`` Clause on One Exception at a Time

We explained above that it is unsafe to execute an ``except`` clause in
existing code more than once, because the code may not be idempotent.
We considered doing this in the new ``except*`` clauses,
We considered doing this in the new ``except*`` clauses,
where the backwards compatibility considerations do not exist.
The idea is to always execute an ``except*`` clause on a single exception,
possibly executing the same clause multiple times when it matches multiple
Expand Down

0 comments on commit 8abbdd1

Please sign in to comment.