diff --git a/peps/pep-0758.rst b/peps/pep-0758.rst index 9f7dc270005..85fbbbc8a1a 100644 --- a/peps/pep-0758.rst +++ b/peps/pep-0758.rst @@ -1,12 +1,12 @@ PEP: 758 Title: Allow ``except`` and ``except*`` expressions without parentheses Author: Pablo Galindo , Brett Cannon -PEP-Delegate: TBD -Status: Draft +Status: Accepted Type: Standards Track Created: 30-Sep-2024 Python-Version: 3.14 Post-History: `02-Oct-2024 `__ +Resolution: `14-Mar-2025 `__ Abstract ======== @@ -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