diff options
author | Georg Brandl <georg@python.org> | 2008-05-11 10:55:59 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-11 10:55:59 (GMT) |
commit | e9135ba79de0554e99589e2b1143bd16eef8d8a2 (patch) | |
tree | 949ee51f20cdcf4397b9069d3a46a8ef685af242 /Doc/library/exceptions.rst | |
parent | 6f95ae55b151f366396e7d99b829c27f27259a89 (diff) | |
download | cpython-e9135ba79de0554e99589e2b1143bd16eef8d8a2.zip cpython-e9135ba79de0554e99589e2b1143bd16eef8d8a2.tar.gz cpython-e9135ba79de0554e99589e2b1143bd16eef8d8a2.tar.bz2 |
#2147: PEP 237 changes to overflow behavior.
Diffstat (limited to 'Doc/library/exceptions.rst')
-rw-r--r-- | Doc/library/exceptions.rst | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index be2b581..01b54b3 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -254,11 +254,10 @@ The following exceptions are the exceptions that are actually raised. Raised when the result of an arithmetic operation is too large to be represented. This cannot occur for long 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. For plain integers, all operations that can overflow are - checked except left shift, where typical applications prefer to drop bits than - raise an exception. + :exc:`MemoryError` than give up) and for most operations with plain integers, + which return a long integer instead. Because of the lack of standardization + of floating point exception handling in C, most floating point operations + also aren't checked. .. exception:: ReferenceError |