[Python-Dev] PEP 201 - Parallel iteration

Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Tue, 18 Jul 2000 09:31:52 +0300 (IDT)


(assume a = [1, 2, 3])

On Mon, 17 Jul 2000, Gordon McMillan wrote:

> How about a fourth: zip(a) is the same as zip(a, []) ?

Huh???????????????????

> Look at it this way: what should zip(a, pad=None) return?

[(1,), (2,), (3,)], of course

> Obviously: [(1, None), (2, None), (3, None)]

Why?


--
Moshe Zadka <moshez@math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.
http://advogato.org/person/moshez