Clarify ValueError's broad applicability (GH-8313) (GH-8315)
(cherry picked from commit feabae9617
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
This commit is contained in:
parent
6020d98bea
commit
68833dcbd4
|
@ -525,7 +525,7 @@ The following exceptions are the exceptions that are usually raised.
|
|||
|
||||
.. exception:: ValueError
|
||||
|
||||
Raised when a built-in operation or function receives an argument that has the
|
||||
Raised when an operation or function receives an argument that has the
|
||||
right type but an inappropriate value, and the situation is not described by a
|
||||
more precise exception such as :exc:`IndexError`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue