[issue6985] range() fails with long integers

Mark Dickinson report at bugs.python.org
Thu Sep 24 13:36:02 CEST 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

Mark]
> I *think* range uses long internally

Aargh!  Sorry, Eric.  I take it back.  *xrange* uses longs internally
(and used to use ints once upon a time, IIRC), but there's a weird mix
of int and long in builtin_range that doesn't make any sense to me.  I
suspect it's historical, and may have to do both with the xrange
int->long switch and the int -> Py_ssize_t switch.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6985>
_______________________________________


More information about the Python-bugs-list mailing list