for loop

Diez B. Roggisch deetsNOSPAM at
Mon Dec 13 00:48:07 CET 2004

> I hardly ever use (x)range for anything (because you can almost always
> use a for loop to loop over items instead), but I'll file this info away
> mentally for the next time I do.  Thanks!

Thats true for me too - and since enumerate was introduced, the number of
applications of xrange have decreased further.


Diez B. Roggisch

More information about the Python-list mailing list