Steve R. Hastings <[EMAIL PROTECTED]> wrote:
   ...
> Actually, for many uses of "for i in (range|xrange)", you only need the
> value of i, and you aren't doing anything with the integer object.  You

Then, the speediest approach may be completely different:

import itertools

for i in itertools.repeat(None, N):
   ...


Remember, when you're thinking "blazing speed", think itertools.


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to