[Python-Dev] synchronized enumerate

Raymond Hettinger raymond.hettinger at verizon.net
Mon Dec 19 23:33:35 CET 2005

[Chris or Leslie Smith]
> I see that there is a thread of a similar topic that was posted
recently (
> enumerate with a start index  ) but thought I would start a new thread
> since what I am suggesting is a little different.

Try rolling your own with izip() and count():
   izip(count(start), someslice)

Raymond Hettinger

More information about the Python-Dev mailing list