Matt Nordhoff <mnordh...@mattnordhoff.com> wrote: > >That's what itertools.count() is for. > ><http://docs.python.org/library/itertools.html#itertools.count> > >It'll be faster, too, since it's written in C. Not that it really >matters, but it's always nice.
For being such a simple concept, I've been surprised how many places itertools.count() has come in handy for me. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list