Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/datastructures.rst @ 48665:b2c505d4a203
#3522: zip() returns an iterator.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 08 Aug 2008 06:44:14 +0000 |
| parents | a0882bfaf54d |
| children | c87b84db244c |
line wrap: on
line diff
--- a/Doc/tutorial/datastructures.rst Fri Aug 08 04:28:30 2008 +0000 +++ b/Doc/tutorial/datastructures.rst Fri Aug 08 06:44:14 2008 +0000 @@ -257,7 +257,7 @@ In real world, you should prefer builtin functions to complex flow statements. The :func:`zip` function would do a great job for this use case:: - >>> zip(*mat) + >>> list(zip(*mat)) [(1, 4, 7), (2, 5, 8), (3, 6, 9)] See :ref:`tut-unpacking-arguments` for details on the asterisk in this line.
