]> granicus.if.org Git - python/commitdiff
document sys.maxint in std objects
authorGeorg Brandl <georg@python.org>
Tue, 28 Mar 2006 18:02:44 +0000 (18:02 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 28 Mar 2006 18:02:44 +0000 (18:02 +0000)
Doc/lib/libstdtypes.tex

index 017b08048b64d5d5ac9e604c6184d2327f05f03a..ec96ed5e864885558ece6c288ee91f1b9904c022 100644 (file)
@@ -185,10 +185,12 @@ There are four distinct numeric types: \dfn{plain integers},
 In addition, Booleans are a subtype of plain integers.
 Plain integers (also just called \dfn{integers})
 are implemented using \ctype{long} in C, which gives them at least 32
-bits of precision.  Long integers have unlimited precision.  Floating
-point numbers are implemented using \ctype{double} in C.  All bets on
-their precision are off unless you happen to know the machine you are
-working with.
+bits of precision (\code{sys.maxint} is always set to the maximum
+plain integer value for the current platform, the minimum value is 
+\code{-sys.maxint - 1}).  Long integers have unlimited precision.
+Floating point numbers are implemented using \ctype{double} in C.
+All bets on their precision are off unless you happen to know the
+machine you are working with.
 \obindex{numeric}
 \obindex{Boolean}
 \obindex{integer}