]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] Docs: except with multiple exceptions parentheses not required (GH-145848...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Mar 2026 10:12:02 +0000 (11:12 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Mar 2026 10:12:02 +0000 (06:12 -0400)
commitb5e5013378a6c6153a33ca34f6a00ef4ccd54e0c
tree3426184c6319ec9bc25ff8df84e957c00b12775c
parent2af2a3830258e9bbed6429fa45c0594ebfc866f8
[3.14] Docs: except with multiple exceptions parentheses not required (GH-145848) (#145904)

Docs: except with multiple exceptions parentheses not required (GH-145848)

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

See: https://peps.python.org/pep-0758/

Co-authored-by: Maurizio Sambati <duilio@users.noreply.github.com>
Doc/tutorial/errors.rst