summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-09-28 07:24:24 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-09-28 07:24:24 -0700
commit18581efe36de69c1714b11a50c1b8ba3bba18f69 (patch)
treec1b6867ae66c106dc02a7c05a291ffc83425e99d
parent8ef1fcecc546f254e8b55d50ef82a433fc280641 (diff)
parentfd448daf770de7ceb5f433c40a14c9a889dffa92 (diff)
downloadcpython-git-18581efe36de69c1714b11a50c1b8ba3bba18f69.tar.gz
Close issue #16073: merge fix from 3.2.
-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 ed81ade5b1..bd661e245c 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