Kaydet (Commit) b6d1f48c authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy

Issue #21559: Add alternative (historical) reason for OverflowError.

üst f2fb73f6
...@@ -274,9 +274,10 @@ The following exceptions are the exceptions that are usually raised. ...@@ -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 Raised when the result of an arithmetic operation is too large to be
represented. This cannot occur for integers (which would rather raise represented. This cannot occur for integers (which would rather raise
:exc:`MemoryError` than give up). Because of the lack of standardization of :exc:`MemoryError` than give up). However, for historical reasons,
floating point exception handling in C, most floating point operations also OverflowError is sometimes raised for integers that are outside a required
aren't checked. range. Because of the lack of standardization of floating point exception
handling in C, most floating point operations are not checked.
.. exception:: ReferenceError .. exception:: ReferenceError
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment