[Python-checkins] r81057 - python/branches/py3k/Doc/library/exceptions.rst

benjamin.peterson python-checkins at python.org
Mon May 10 22:49:20 CEST 2010


Author: benjamin.peterson
Date: Mon May 10 22:49:20 2010
New Revision: 81057

Log:
remove reference to second argument to raise #8676

Modified:
   python/branches/py3k/Doc/library/exceptions.rst

Modified: python/branches/py3k/Doc/library/exceptions.rst
==============================================================================
--- python/branches/py3k/Doc/library/exceptions.rst	(original)
+++ python/branches/py3k/Doc/library/exceptions.rst	Mon May 10 22:49:20 2010
@@ -20,10 +20,10 @@
 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


More information about the Python-checkins mailing list