[Python-Dev] More int/long integration issues
Aahz
aahz@pythoncraft.com
Thu, 13 Mar 2003 11:42:47 -0500
Thu, 13 Mar 2003 11:42:47 -0500
- Previous message: [Python-Dev] More int/long integration issues
- Next message: [Python-Dev] More int/long integration issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Mar 13, 2003, David Abrahams wrote: > > I was recently surprised by: > > Python 2.3a2+ (#1, Feb 24 2003, 15:02:10) > [GCC 3.2 20020927 (prerelease)] on cygwin > Type "help", "copyright", "credits" or "license" for more information. > >>> xrange(2 ** 32) > Traceback (most recent call last): > File "<stdin>", line 1, in ? > OverflowError: long int too large to convert to int > > Now that we have a kind of long/int integration, maybe it makes sense > to update xrange()? Or is that really a 2.4 feature? IIRC, it was decided that doing that wouldn't make sense until the standard sequences (lists/tuples) can support more than 2**31 items. -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ Register for PyCon now! http://www.python.org/pycon/reg.html
- Previous message: [Python-Dev] More int/long integration issues
- Next message: [Python-Dev] More int/long integration issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]