changeset: 91206:9ba324a20bad branch: 3.4 parent: 91204:8fcbe41e1242 user: Terry Jan Reedy date: Mon Jun 16 03:31:00 2014 -0400 files: Doc/library/exceptions.rst description: Issue #21559: Add alternative (historical) reason for OverflowError. diff -r 8fcbe41e1242 -r 9ba324a20bad Doc/library/exceptions.rst --- a/Doc/library/exceptions.rst Mon Jun 16 03:05:37 2014 -0400 +++ b/Doc/library/exceptions.rst Mon Jun 16 03:31:00 2014 -0400 @@ -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