for loop: range() result has too many items

Andre Engels andreengels at gmail.com
Tue Oct 13 17:56:05 EDT 2009


On Tue, Oct 13, 2009 at 11:55 PM, Andre Engels <andreengels at gmail.com> wrote:

> for i in range(sys.maxint):
>    if i % 100 == 0:
>       print i

Grmbl.... cut-and-paste error... I meant of course:

for i in xrange(sys.maxint):
   if i % 100 == 0:
      print i

-- 
André Engels, andreengels at gmail.com



More information about the Python-list mailing list