summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/datastructures.rst
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2012-08-12 08:25:10 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2012-08-12 08:25:10 (GMT)
commit131160c5ccda7eb90c38d998a3b446e99a19ccff (patch)
tree2a16ea9e661d2c2283c5f43f00e04bb2fbdd6abc /Doc/tutorial/datastructures.rst
parentb428f47cf61b82da25406edafc561674d085452a (diff)
parent0a90a82b8a9e4364eb669dee250e308aeaa40f4a (diff)
downloadcpython-131160c5ccda7eb90c38d998a3b446e99a19ccff.zip
cpython-131160c5ccda7eb90c38d998a3b446e99a19ccff.tar.gz
cpython-131160c5ccda7eb90c38d998a3b446e99a19ccff.tar.bz2
merge with 3.2
Diffstat (limited to 'Doc/tutorial/datastructures.rst')
-rw-r--r--Doc/tutorial/datastructures.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 54f442d..ed81ade 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -297,7 +297,7 @@ which, in turn, is the same as::
In the real world, you should prefer built-in functions to complex flow statements.
The :func:`zip` function would do a great job for this use case::
- >>> zip(*matrix)
+ >>> list(zip(*matrix))
[(1, 5, 9), (2, 6, 10), (3, 7, 11), (4, 8, 12)]
See :ref:`tut-unpacking-arguments` for details on the asterisk in this line.