[New-bugs-announce] [issue1630] sys.maxint is documented but should not be

Blair Zajac report at bugs.python.org
Sat Dec 15 02:00:02 CET 2007

New submission from Blair Zajac:

There is still documentation for sys.maxint even though it no
longer exists in Python 3.0:

$ /tmp/p3.0/bin/python
Python 3.0a2 (r30a2:59382, Dec 13 2007, 11:07:38)
[GCC 3.4.3 20050227 (Red Hat 3.4.3-22.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> [x for x in sys.__doc__.split('\n') if x.find('maxint') != -1]
['maxint -- the largest supported integer (the smallest is -maxint-1)']
>>> sys.maxint
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'maxint'

components: Library (Lib)
messages: 58645
nosy: blair
severity: normal
status: open
title: sys.maxint is documented but should not be
versions: Python 3.0

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list