[Python-checkins] cpython (3.4): Issue #21559: Add alternative (historical) reason for OverflowError.
terry.reedy
python-checkins at python.org
Mon Jun 16 09:31:52 CEST 2014
http://hg.python.org/cpython/rev/9ba324a20bad
changeset: 91206:9ba324a20bad
branch: 3.4
parent: 91204:8fcbe41e1242
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Mon Jun 16 03:31:00 2014 -0400
summary:
Issue #21559: Add alternative (historical) reason for OverflowError.
files:
Doc/library/exceptions.rst | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -274,9 +274,10 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list