[Python-Dev] iterzip() (original) (raw)

Guido van Rossum guido@python.org
Sun, 28 Apr 2002 18:14:25 -0400


What do you guys think about the merits of an iterzip() function that behaves like zip() but returns an iterator instead of a list?

Hm, I'm not particularly enamored of the idea of adding 'iter' versions of everything under the sun. I wish zip() could've been an interator from the start, but now that it isn't, I don't think it's such a big deal. (An iterator version is easily written as a generator.)

In general I'm not keen on increasing the number of builtin functions much.

--Guido van Rossum (home page: http://www.python.org/~guido/)