[Python-Dev] More int/long integration issues

David Abrahams dave@boost-consulting.com
Thu, 13 Mar 2003 11:27:07 -0500


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?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com