Skip to content

Commit

Permalink
PEP-654: state in rationale the premise that the new features will be…
Browse files Browse the repository at this point in the history
… used selectively (#1851)
  • Loading branch information
iritkatriel authored Mar 1, 2021
1 parent c9f4cf2 commit aea3cc1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pep-0654.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ The purpose of this PEP, then, is to add the ``except*`` syntax for handling
handling semantics, so we are not proposing to modify the behavior of the
``except`` keyword but rather to add the new ``except*`` syntax.

Our premise is that ``ExceptionGroups`` and ``except*`` will be used
selectively, only when they are needed. We do not expect them to become
the default mechanism for exception handling. The decision to raise
``ExceptionGroup`` from a library needs to be considered carefully and
regarded as an API-breaking change. We expect that this will normally be
done by introducing a new API rather than modifying an existing one.


Specification
=============
Expand Down

0 comments on commit aea3cc1

Please sign in to comment.