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 not found in Python 3.0a2 #46224

Closed
rclark mannequin opened this issue Jan 25, 2008 · 5 comments
Closed

sys.maxint not found in Python 3.0a2 #46224

rclark mannequin opened this issue Jan 25, 2008 · 5 comments
Labels
build The build process and cross-build docs Documentation in the Doc dir

Comments

@rclark
Copy link
Mannequin

rclark mannequin commented Jan 25, 2008

BPO 1930
Nosy @loewis, @tiran, @orivej

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 2008-01-25.11:12:06.014>
created_at = <Date 2008-01-25.00:10:06.562>
labels = ['build', 'invalid', 'docs']
title = 'sys.maxint not found in Python 3.0a2'
updated_at = <Date 2008-01-25.11:12:05.993>
user = 'https://bugs.python.org/rclark'

bugs.python.org fields:

activity = <Date 2008-01-25.11:12:05.993>
actor = 'christian.heimes'
assignee = 'none'
closed = True
closed_date = <Date 2008-01-25.11:12:06.014>
closer = 'christian.heimes'
components = ['Documentation']
creation = <Date 2008-01-25.00:10:06.562>
creator = 'rclark'
dependencies = []
files = []
hgrepos = []
issue_num = 1930
keywords = []
message_count = 5.0
messages = ['61661', '61663', '61664', '61671', '61680']
nosy_count = 4.0
nosy_names = ['loewis', 'christian.heimes', 'orivej', 'rclark']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue1930'
versions = ['Python 3.0']

@rclark
Copy link
Mannequin Author

rclark mannequin commented Jan 25, 2008

File
"/home/rclark/lib/src/python/pyparsing/pyparsing-1.3.1/pyparsing.py",
line 971, in __init__
self.maxLen = sys.maxint

AttributeError: 'module' object has no attribute 'maxint'

@rclark rclark mannequin added the build The build process and cross-build label Jan 25, 2008
@rclark
Copy link
Mannequin Author

rclark mannequin commented Jan 25, 2008

sys.maxint was changed to sys.maxsize, but this was not noted in the
documentation.

@orivej
Copy link
Mannequin

orivej mannequin commented Jan 25, 2008

Maybe it was not noted, but it is documented:
http://docs.python.org/dev/3.0/library/sys.html

@gvanrossum gvanrossum added the docs Documentation in the Doc dir label Jan 25, 2008
@loewis
Copy link
Mannequin

loewis mannequin commented Jan 25, 2008

sys.maxint was *not* changed to sys.maxsize - it was simply removed.
pyparsing apparently hasn't been ported to Python 3; please bring this
up with the pyparsing authors (but then, Python 3 hasn't been released,
so they might decide not to take any action for several years, until,
say, Python 3.2).

sys.maxint used to indicate the maximum value that an int could have. In
Python 3, the int type has no maximum value anymore.

The only place where this might need some notice is the whatsnew text.

@tiran
Copy link
Member

tiran commented Jan 25, 2008

I've added a comment next to long -> int in r60280.

Please note that Python 2.x doesn't run under 3.0. You have to port the
code to 2.6 first, make arrangements and at last use the 2to3 tool.

@tiran tiran closed this as completed Jan 25, 2008
@tiran tiran added the invalid label Jan 25, 2008
@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
build The build process and cross-build docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants