Mark Dickinson added the comment:
The bug is (not surprisingly) in range_reduce in Objects/rangeobject.c, where
return Py_BuildValue("(O(iii))", Py_TYPE(r),
should be
return Py_BuildValue("(O(lll))", Py_TYPE(r),
But in writing tests for this bug, I fell over another one:
>>> import sys
>>> xrange(0, sys.maxint, sys.maxint-1)
xrange(0, -4, 2147483646)
----------
nosy: +mark.dickinson
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16029>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com