diff options
author | Collin Winter <collinw@gmail.com> | 2007-09-10 00:32:45 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-09-10 00:32:45 (GMT) |
commit | 1fc035ff63b605a277494dcc7c39cccb9a2f57c0 (patch) | |
tree | 11cd2fba5c54c730bf5fb041887b9353c8d56dcc /Doc/tutorial/errors.rst | |
parent | 596d99aa63db5d530d4961e03b7d42f0f9b776fd (diff) | |
download | cpython-1fc035ff63b605a277494dcc7c39cccb9a2f57c0.zip cpython-1fc035ff63b605a277494dcc7c39cccb9a2f57c0.tar.gz cpython-1fc035ff63b605a277494dcc7c39cccb9a2f57c0.tar.bz2 |
Fix docs that imply that tuples in except clauses must be parenthesized.
Diffstat (limited to 'Doc/tutorial/errors.rst')
-rw-r--r-- | Doc/tutorial/errors.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 87edf1d..8281c7f 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -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 parenthesized tuple, for example:: +name multiple exceptions as a 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. |