#4562: fix zip() examples.

This commit is contained in:
Georg Brandl 2008-12-06 14:28:56 +00:00
parent 518d8da05c
commit 17fe364b44

View file

@ -1161,9 +1161,9 @@ are always available. They are listed here in alphabetical order.
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> zipped = zip(x, y)
>>> zipped
>>> list(zipped)
[(1, 4), (2, 5), (3, 6)]
>>> x2, y2 = zip(*zipped)
>>> x2, y2 = zip(*zip(x, y))
>>> x == x2, y == y2
True