[Python-checkins] r43404 - python/trunk/Doc/lib/libstdtypes.tex

georg.brandl python-checkins at python.org
Tue Mar 28 20:02:49 CEST 2006


Author: georg.brandl
Date: Tue Mar 28 20:02:44 2006
New Revision: 43404

Modified:
   python/trunk/Doc/lib/libstdtypes.tex
Log:
document sys.maxint in std objects



Modified: python/trunk/Doc/lib/libstdtypes.tex
==============================================================================
--- python/trunk/Doc/lib/libstdtypes.tex	(original)
+++ python/trunk/Doc/lib/libstdtypes.tex	Tue Mar 28 20:02:44 2006
@@ -185,10 +185,12 @@
 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}


More information about the Python-checkins mailing list