python loops

Tim Roberts timr at probo.com
Sun Sep 3 02:32:41 EDT 2006


bearophileHUGS at lycos.com wrote:

>AlbaClause wrote:
>
>> for i in range(length):
>>         print i
>
>Or usually better:
>
>for ii in xrange(length):
>    ...

xrange used to be better.  As I understand it, that's no longer the case.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list