summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-05-10 20:49:20 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-05-10 20:49:20 (GMT)
commitb496badc325c75a3058c55926d7f823e78775590 (patch)
treea10c77cc7d3b5bcf5e316847fb3182f0e6fb0dc8 /Doc
parentf707aa7f8b8540439b2444edd1028665317a0466 (diff)
downloadcpython-b496badc325c75a3058c55926d7f823e78775590.zip
cpython-b496badc325c75a3058c55926d7f823e78775590.tar.gz
cpython-b496badc325c75a3058c55926d7f823e78775590.tar.bz2
remove reference to second argument to raise #8676
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/exceptions.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index 9b95fa3..777cf19 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -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