File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11PEP: 758
22Title: Allow ``except `` and ``except* `` expressions without parentheses
33Author: Pablo Galindo <pablogsal@python.org>, Brett Cannon <brett@python.org>
4- PEP-Delegate: TBD
5- Status: Draft
4+ Status: Accepted
65Type: Standards Track
76Created: 30-Sep-2024
87Python-Version: 3.14
98Post-History: `02-Oct-2024 <https://discuss.python.org/t/66453 >`__
9+ Resolution: `14-Mar-2025 <https://discuss.python.org/t/66453/63 >`__
1010
1111Abstract
1212========
@@ -57,7 +57,7 @@ The same change would apply to ``except*`` expressions. For example:
5757 except * ExceptionA, ExceptionB, ExceptionC:
5858 ...
5959
60- When using the ``as `` clause to capture the exception instance paretheses must
60+ When using the ``as `` clause to capture the exception instance parentheses must
6161be used as before. Some users have expressed that they would find it confusing not
6262to require parentheses as it would be unclear what exactly is being assigned to
6363the target since in other parts of the language multiple ``as `` clauses can be used
You can’t perform that action at this time.
0 commit comments