Most viewed recipes by Eyal Lotem http://code.activestate.com/recipes/users/4053807/views/2007-06-04T18:34:55-07:00ActiveState Code RecipesA pythonic implementation of xrange (Python)
2007-06-04T18:34:55-07:00Eyal Lotemhttp://code.activestate.com/recipes/users/4053807/http://code.activestate.com/recipes/521885-a-pythonic-implementation-of-xrange/
<p style="color: grey">
Python
recipe 521885
by <a href="/recipes/users/4053807/">Eyal Lotem</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
</p>
<p>The built-in xrange is fast, but it does not support floats and longs as start,stop,step parameters.
This means you cannot iterate large number (that don't fit in an int) ranges via xrange as you would with small numbers.</p>