mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #21559: Add alternative (historical) reason for OverflowError.
This commit is contained in:
parent
f2fb73f675
commit
b6d1f48c14
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue