diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-06-16 07:31:00 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-06-16 07:31:00 (GMT) |
commit | b6d1f48c14b7a3bc7047138dc0bf5aadfe6be480 (patch) | |
tree | 5ac5038c1ad25ce447d7b856c4f5045f024b52cb | |
parent | f2fb73f6757d569d176811e849a2732861ec6eb9 (diff) | |
download | cpython-b6d1f48c14b7a3bc7047138dc0bf5aadfe6be480.zip cpython-b6d1f48c14b7a3bc7047138dc0bf5aadfe6be480.tar.gz cpython-b6d1f48c14b7a3bc7047138dc0bf5aadfe6be480.tar.bz2 |
Issue #21559: Add alternative (historical) reason for OverflowError.
-rw-r--r-- | Doc/library/exceptions.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index d2c2ef4..74d6fcb 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -274,9 +274,10 @@ The following exceptions are the exceptions that are usually raised. Raised when the result of an arithmetic operation is too large to be represented. This cannot occur for integers (which would rather raise - :exc:`MemoryError` than give up). Because of the lack of standardization of - floating point exception handling in C, most floating point operations also - aren't checked. + :exc:`MemoryError` than give up). However, for historical reasons, + OverflowError is sometimes raised for integers that are outside a required + range. Because of the lack of standardization of floating point exception + handling in C, most floating point operations are not checked. .. exception:: ReferenceError |