]> granicus.if.org Git - python/commitdiff
Fix docs that imply that tuples in except clauses must be parenthesized.
authorCollin Winter <collinw@gmail.com>
Mon, 10 Sep 2007 00:32:45 +0000 (00:32 +0000)
committerCollin Winter <collinw@gmail.com>
Mon, 10 Sep 2007 00:32:45 +0000 (00:32 +0000)
Doc/tutorial/errors.rst

index 87edf1defae70235e9867c4377f601e7ea6a185d..8281c7f20f3d1cd6bab39745d6790fb75773d530 100644 (file)
@@ -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.