]> granicus.if.org Git - python/commitdiff
remove reference to second argument to raise #8676
authorBenjamin Peterson <benjamin@python.org>
Mon, 10 May 2010 20:49:20 +0000 (20:49 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 10 May 2010 20:49:20 +0000 (20:49 +0000)
Doc/library/exceptions.rst

index 9b95fa355f0b3d4289f4f5b6a8b6254520975017..777cf1987ce63c44fd8fc8b056c7fe565ff33911 100644 (file)
@@ -20,10 +20,10 @@ The built-in exceptions listed below can be generated by the interpreter or
 built-in functions.  Except where mentioned, they have an "associated value"
 indicating the detailed cause of the error. This may be a string or a tuple
 containing several items of information (e.g., an error code and a string
-explaining the code). The associated value is the second argument to the
-:keyword:`raise` statement.  If the exception class is derived from the standard
-root class :exc:`BaseException`, the associated value is present as the
-exception instance's :attr:`args` attribute.
+explaining the code).  The associated value is usually passed to the exception
+class's constructor.  If the exception class is derived from the standard root
+class :exc:`BaseException`, the associated value is present as the exception
+instance's :attr:`args` attribute.
 
 User code can raise built-in exceptions.  This can be used to test an exception
 handler or to report an error condition "just like" the situation in which the