summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-09-28 14:21:17 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-09-28 14:21:17 (GMT)
commitd5dc6e50ffc453bf6e8c49634d9dace88d73351c (patch)
tree2617527614186fda3c0bdd934bcb00964f0e7da8
parent6fb204af790dffd3829c62c4266383e84b48cc04 (diff)
parent18581efe36de69c1714b11a50c1b8ba3bba18f69 (diff)
downloadcpython-d5dc6e50ffc453bf6e8c49634d9dace88d73351c.zip
cpython-d5dc6e50ffc453bf6e8c49634d9dace88d73351c.tar.gz
cpython-d5dc6e50ffc453bf6e8c49634d9dace88d73351c.tar.bz2
Merge.
-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