summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-09-28 14:24:24 (GMT)
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-09-28 14:24:24 (GMT)
commit18581efe36de69c1714b11a50c1b8ba3bba18f69 (patch)
treec1b6867ae66c106dc02a7c05a291ffc83425e99d /Doc/tutorial
parent8ef1fcecc546f254e8b55d50ef82a433fc280641 (diff)
parentfd448daf770de7ceb5f433c40a14c9a889dffa92 (diff)
downloadcpython-18581efe36de69c1714b11a50c1b8ba3bba18f69.zip
cpython-18581efe36de69c1714b11a50c1b8ba3bba18f69.tar.gz
cpython-18581efe36de69c1714b11a50c1b8ba3bba18f69.tar.bz2
Close issue #16073: merge fix from 3.2.
Diffstat (limited to 'Doc/tutorial')
-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 ed81ade..bd661e2 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -186,7 +186,7 @@ We can obtain the same result with::
squares = [x**2 for x in range(10)]
-This is also equivalent to ``squares = map(lambda x: x**2, range(10))``,
+This is also equivalent to ``squares = list(map(lambda x: x**2, range(10)))``,
but it's more concise and readable.
A list comprehension consists of brackets containing an expression followed