https://github.com/python/cpython/commit/1fb24b6e8395a70f7b6daf7af40065ab8177b8c4 commit: 1fb24b6e8395a70f7b6daf7af40065ab8177b8c4 branch: 2.7 author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com> committer: Raymond Hettinger <rhettinger at users.noreply.github.com> date: 2018年07月17日T13:23:52-07:00 summary: Clarify ValueError's broad applicability (GH-8313) (GH-8316) (cherry picked from commit feabae961707b00008c15a31352e458f4e8b3a6c) Co-authored-by: Raymond Hettinger <rhettinger at users.noreply.github.com> files: M Doc/library/exceptions.rst diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index fe1465600817..8757c6cb4468 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -439,7 +439,7 @@ The following exceptions are the exceptions that are actually 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`.