Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys.maxint is documented but should not be #45971

Closed
blair mannequin opened this issue Dec 15, 2007 · 2 comments
Closed

sys.maxint is documented but should not be #45971

blair mannequin opened this issue Dec 15, 2007 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@blair
Copy link
Mannequin

blair mannequin commented Dec 15, 2007

BPO 1630
Nosy @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-12-15.01:28:33.165>
created_at = <Date 2007-12-15.01:00:02.342>
labels = ['library']
title = 'sys.maxint is documented but should not be'
updated_at = <Date 2008-01-06.22:29:44.427>
user = 'https://bugs.python.org/blair'

bugs.python.org fields:

activity = <Date 2008-01-06.22:29:44.427>
actor = 'admin'
assignee = 'none'
closed = True
closed_date = <Date 2007-12-15.01:28:33.165>
closer = 'christian.heimes'
components = ['Library (Lib)']
creation = <Date 2007-12-15.01:00:02.342>
creator = 'blair'
dependencies = []
files = []
hgrepos = []
issue_num = 1630
keywords = []
message_count = 2.0
messages = ['58645', '58647']
nosy_count = 2.0
nosy_names = ['christian.heimes', 'blair']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1630'
versions = ['Python 3.0']

@blair
Copy link
Mannequin Author

blair mannequin commented Dec 15, 2007

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'

@blair blair mannequin added the stdlib Python modules in the Lib dir label Dec 15, 2007
@tiran
Copy link
Member

tiran commented Dec 15, 2007

Thanks for the bug report
I fixed the problem in r59518

@tiran tiran closed this as completed Dec 15, 2007
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant