On Tue, 7 Mar 2023 at 16:53, Stephen Tucker <stephen_tuc...@sil.org> wrote: > > Hi again, > > I tried xrange, but I got an error telling me that my integer was too big > for a C long. > > Clearly, xrange in Py2 is not capable of dealing with Python (that is, > possibly very long) integers.
That's because Py2 has two different integer types, int and long. > I am raising this because, > > (a) IF xrange in Py3 is a simple "port" from Py2, then it won't handle > Python integers either. > > AND > > (b) IF xrange in Py3 is intended to be equivalent to range (which, even in > Py2, does handle Python integers) > > THEN > > It could be argued that xrange in Py3 needs some attention from the > developer(s). Why don't you actually try Python 3 instead of making assumptions based on the state of Python from more than a decade ago? ChrisA -- https://mail.python.org/mailman/listinfo/python-list