Popular recipes by Andreas Kloss http://code.activestate.com/recipes/users/2009231/2004-08-31T13:15:19-07:00ActiveState Code Recipesrange as iterator (obsolete) (Python)
2004-08-31T13:15:19-07:00Andreas Klosshttp://code.activestate.com/recipes/users/2009231/http://code.activestate.com/recipes/302743-range-as-iterator-obsolete/
<p style="color: grey">
Python
recipe 302743
by <a href="/recipes/users/2009231/">Andreas Kloss</a>
.
Revision 3.
</p>
<p>This is your standard vanilla range functions, converted to work as an iterator:
UPDATE: xrange already does that. So feel free to ignore this.</p>