Skip to content
Merged
Changes from all 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
6 changes: 3 additions & 3 deletions peps/pep-0758.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PEP: 758
Title: Allow ``except`` and ``except*`` expressions without parentheses
Author: Pablo Galindo <pablogsal@python.org>, Brett Cannon <brett@python.org>
PEP-Delegate: TBD
Status: Draft
Status: Accepted
Type: Standards Track
Created: 30-Sep-2024
Python-Version: 3.14
Post-History: `02-Oct-2024 <https://discuss.python.org/t/66453>`__
Resolution: `14-Mar-2025 <https://discuss.python.org/t/66453/63>`__

Abstract
========
Expand Down Expand Up @@ -57,7 +57,7 @@ The same change would apply to ``except*`` expressions. For example:
except* ExceptionA, ExceptionB, ExceptionC:
...

When using the ``as`` clause to capture the exception instance paretheses must
When using the ``as`` clause to capture the exception instance parentheses must
be used as before. Some users have expressed that they would find it confusing not
to require parentheses as it would be unclear what exactly is being assigned to
the target since in other parts of the language multiple ``as`` clauses can be used
Expand Down