Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b496bad

Browse files
committed
remove reference to second argument to raise #8676
1 parent f707aa7 commit b496bad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/exceptions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ The built-in exceptions listed below can be generated by the interpreter or
2020
built-in functions. Except where mentioned, they have an "associated value"
2121
indicating the detailed cause of the error. This may be a string or a tuple
2222
containing several items of information (e.g., an error code and a string
23-
explaining the code). The associated value is the second argument to the
24-
:keyword:`raise` statement. If the exception class is derived from the standard
25-
root class :exc:`BaseException`, the associated value is present as the
26-
exception instance's :attr:`args` attribute.
23+
explaining the code). The associated value is usually passed to the exception
24+
class's constructor. If the exception class is derived from the standard root
25+
class :exc:`BaseException`, the associated value is present as the exception
26+
instance's :attr:`args` attribute.
2727

2828
User code can raise built-in exceptions. This can be used to test an exception
2929
handler or to report an error condition "just like" the situation in which the

0 commit comments

Comments
 (0)