]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Docs: except with multiple exceptions parentheses not required (#145848)
authorMaurizio Sambati <duilio@users.noreply.github.com>
Fri, 13 Mar 2026 09:40:20 +0000 (10:40 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Mar 2026 09:40:20 +0000 (05:40 -0400)
commit6d1e9ceed3e70ebc39953f5ad4f20702ffa32119
tree009988cf7ca69c8cd2cc175a2dd3360637b7bb23
parent0adc7289c3ab097b5608c0d288d91e1f5f236469
Docs: except with multiple exceptions parentheses not required (#145848)

As of PEP 758 the except statement doesn't require parentheses anymore for exception tuples.

See: https://peps.python.org/pep-0758/
Doc/tutorial/errors.rst