Commit b496badc authored by Benjamin Peterson's avatar Benjamin Peterson

remove reference to second argument to raise #8676

parent f707aa7f
...@@ -20,10 +20,10 @@ The built-in exceptions listed below can be generated by the interpreter or ...@@ -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" 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 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 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 explaining the code). The associated value is usually passed to the exception
:keyword:`raise` statement. If the exception class is derived from the standard class's constructor. If the exception class is derived from the standard root
root class :exc:`BaseException`, the associated value is present as the class :exc:`BaseException`, the associated value is present as the exception
exception instance's :attr:`args` attribute. instance's :attr:`args` attribute.
User code can raise built-in exceptions. This can be used to test an exception 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 handler or to report an error condition "just like" the situation in which the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment