Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/errors.rst @ 43447:0ff46ef946b1
Revert r58075 (incorrect docs patch).
| author | Collin Winter <collinw@gmail.com> |
|---|---|
| date | Thu, 27 Sep 2007 21:28:21 +0000 |
| parents | 09287f2055ab |
| children | c8fca9b5cd3c |
line wrap: on
line diff
--- a/Doc/tutorial/errors.rst Thu Sep 27 18:01:22 2007 +0000 +++ b/Doc/tutorial/errors.rst Thu Sep 27 21:28:21 2007 +0000 @@ -115,9 +115,9 @@ 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.
