Skip to content

[3.14] Docs: except with multiple exceptions parentheses not required (GH-145848)#145904

Merged
nedbat merged 1 commit intopython:3.14from
miss-islington:backport-6d1e9ce-3.14
Mar 13, 2026
Merged

[3.14] Docs: except with multiple exceptions parentheses not required (GH-145848)#145904
nedbat merged 1 commit intopython:3.14from
miss-islington:backport-6d1e9ce-3.14

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 13, 2026

As of PEP 758 the except statement doesn't require parentheses anymore for exception tuples.
(cherry picked from commit 6d1e9ce)

Co-authored-by: Maurizio Sambati duilio@users.noreply.github.com
See: https://peps.python.org/pep-0758/


📚 Documentation preview 📚: https://cpython-previews--145904.org.readthedocs.build/

…nGH-145848)

As of PEP 758 the except statement doesn't require parentheses anymore for exception tuples.
(cherry picked from commit 6d1e9ceed3e70ebc39953f5ad4f20702ffa32119)

Co-authored-by: Maurizio Sambati <duilio@users.noreply.github.com>
See: https://peps.python.org/pep-0758/
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news labels Mar 13, 2026
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Mar 13, 2026
@nedbat nedbat merged commit b5e5013 into python:3.14 Mar 13, 2026
38 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Mar 13, 2026
@miss-islington miss-islington deleted the backport-6d1e9ce-3.14 branch March 13, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants