how best to iterate i times ?

Patrick Useldinger p at trick.lu
Wed Mar 17 14:37:37 EST 2004


On Wed, 17 Mar 2004 19:07:36 GMT, Randall Smith <randall at tnr.cc> wrote:

>In the case I know how may times I want to iterate, one way to do it is 
>like this:
>
>for i in range(100000):
>	dothis()
>

I believe that xrange does the same without using much memory.
--
http://www.homepages.lu/pu/



More information about the Python-list mailing list