Skip to content

gh-131831: Implement PEP 758 – Allow except and except* expressions without parentheses#131833

Merged
pablogsal merged 10 commits intopython:mainfrom
pablogsal:notuples
Apr 1, 2025
Merged

gh-131831: Implement PEP 758 – Allow except and except* expressions without parentheses#131833
pablogsal merged 10 commits intopython:mainfrom
pablogsal:notuples

Conversation

@pablogsal
Copy link
Copy Markdown
Member

@pablogsal pablogsal commented Mar 28, 2025

Comment thread Doc/whatsnew/3.14.rst Outdated
@pablogsal
Copy link
Copy Markdown
Member Author

I am missing a test for test_syntax that for some reason didn't committed. Will fix soon

Comment thread Doc/reference/compound_stmts.rst Outdated
Comment thread Doc/reference/compound_stmts.rst
Comment thread Doc/whatsnew/3.14.rst Outdated
Comment thread Doc/whatsnew/3.14.rst Outdated
Comment thread Doc/reference/compound_stmts.rst
Comment thread Lib/test/test_grammar.py
Comment thread Doc/whatsnew/3.14.rst Outdated
Comment thread Doc/whatsnew/3.14.rst Outdated
Comment thread Doc/whatsnew/3.14.rst
Comment thread Doc/whatsnew/3.14.rst Outdated
Comment thread Doc/whatsnew/3.14.rst Outdated
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Brian Schubert <[email protected]>
Comment thread Doc/whatsnew/3.14.rst Outdated
Comment thread Doc/whatsnew/3.14.rst
Comment thread Doc/whatsnew/3.14.rst Outdated
Comment thread Doc/whatsnew/3.14.rst
Copy link
Copy Markdown
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A suggestion about tweaking the exception message, otherwise LGTM!

Comment thread Lib/test/test_syntax.py Outdated
@pablogsal pablogsal enabled auto-merge (squash) March 31, 2025 19:17
@pablogsal pablogsal merged commit c2ac662 into python:main Apr 1, 2025
42 checks passed
@pablogsal pablogsal deleted the notuples branch April 1, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement PEP 758 – Allow except and except* expressions without parentheses

8 participants