Issue 1930: sys.maxint not found in Python 3.0a2 (original) (raw)

Created on 2008-01-25 00:10 by rclark, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg61661 - (view) Author: Robert Clark (rclark) Date: 2008-01-25 00:10
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'
msg61663 - (view) Author: Robert Clark (rclark) Date: 2008-01-25 00:15
sys.maxint was changed to sys.maxsize, but this was not noted in the documentation.
msg61664 - (view) Author: Orivej Desh (orivej) * Date: 2008-01-25 00:19
Maybe it was not noted, but it is documented: http://docs.python.org/dev/3.0/library/sys.html
msg61671 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-01-25 05:45
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.
msg61680 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-25 11:12
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.
History
Date User Action Args
2022-04-11 14:56:30 admin set github: 46224
2008-01-25 11:12:06 christian.heimes set status: open -> closednosy: + christian.heimesresolution: not a bugmessages: +
2008-01-25 05:45:14 loewis set nosy: + loewismessages: +
2008-01-25 01:34:44 gvanrossum set components: + Documentation
2008-01-25 00:19:07 orivej set nosy: + orivejmessages: +
2008-01-25 00:15:11 rclark set messages: +
2008-01-25 00:10:06 rclark create