Put shortly, I am trying to create and loop through a list from 0 to an arbitrary large number. This number is likely to be huge (e.g. 10000000000). I've tried using xrange, but it runs into overflow errors. I also tried using itertools.islice with count() (as suggested here), but the range I need is larger than sys.maxint, which is the limit on islice()'s stop argument.
What I would like to know is whether there's any way to deal with these large numbers in an elegant way? Is there something I'm missing here? I know I have the option of using a while-loop, but I would prefer not to.
I'm currently using 32-bit Python 2.7.
Thank you!