mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Revert r58075 (incorrect docs patch).
This commit is contained in:
parent
f1044293fa
commit
d2e44df07a
1 changed files with 2 additions and 2 deletions
|
@ -115,9 +115,9 @@ A :keyword:`try` statement may have more than one except clause, to specify
|
|||
handlers for different exceptions. At most one handler will be executed.
|
||||
Handlers only handle exceptions that occur in the corresponding try clause, not
|
||||
in other handlers of the same :keyword:`try` statement. An except clause may
|
||||
name multiple exceptions as a tuple, for example::
|
||||
name multiple exceptions as a parenthesized tuple, for example::
|
||||
|
||||
... except RuntimeError, TypeError, NameError:
|
||||
... except (RuntimeError, TypeError, NameError):
|
||||
... pass
|
||||
|
||||
The last except clause may omit the exception name(s), to serve as a wildcard.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue