It is itertools.izip()
:
Make an iterator that aggregates elements from each of the iterables. Like zip() except that it returns an iterator instead of a list. Used for lock-step iteration over several iterables at a time.
Example:
>>> from itertools import izip
>>> a = [1,2,3,4,5]
>>> b = [5,4,3,2,1]
>>> c = izip(a, b)
>>> c
<itertools.izip object at 0x10d1aaf38>
>>> for x, y in c:
... print x, y
...
1 5
2 4
3 3
4 2
5 1
Note that in Python-3.x izip()
is gone, zip()
returns an iterator.