diff options
author | Georg Brandl <georg@python.org> | 2007-11-29 17:24:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-11-29 17:24:34 (GMT) |
commit | ba956aebb96c38f1b8818189ed6ab18d5441313a (patch) | |
tree | 8cd8aba4cf4559f7e8e2086ea9ad05b4be91187f /Doc/reference/datamodel.rst | |
parent | 0db38532b304c89a998e4fc53b3ac8cd7ff23a8a (diff) | |
download | cpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.zip cpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.tar.gz cpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.tar.bz2 |
Remove mentions of "long integer" in the docs.
Credits to HappySmileMan from GHOP.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r-- | Doc/reference/datamodel.rst | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 68e9f10..f33df0b 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -177,18 +177,6 @@ Numbers object: plain integer single: OverflowError (built-in exception) - These represent numbers in the range -2147483648 through 2147483647. (The range - may be larger on machines with a larger natural word size, but not smaller.) - When the result of an operation would fall outside this range, the result is - normally returned as a long integer (in some cases, the exception - :exc:`OverflowError` is raised instead). For the purpose of shift and mask - operations, integers are assumed to have a binary, 2's complement notation using - 32 or more bits, and hiding no bits from the user (i.e., all 4294967296 - different bit patterns correspond to different values). - - Long integers - .. index:: object: long integer - These represent numbers in an unlimited range, subject to available (virtual) memory only. For the purpose of shift and mask operations, a binary representation is assumed, and negative numbers are represented in a variant of @@ -210,11 +198,9 @@ Numbers .. index:: pair: integer; representation The rules for integer representation are intended to give the most meaningful - interpretation of shift and mask operations involving negative integers and the - least surprises when switching between the plain and long integer domains. Any + interpretation of shift and mask operations involving negative integers. Any operation except left shift, if it yields a result in the plain integer domain - without causing overflow, will yield the same result in the long integer domain - or when using mixed operands. + without causing overflow, will yield the same result when using mixed operands. .. % Integers |