diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-09-28 14:24:24 (GMT) |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-09-28 14:24:24 (GMT) |
commit | 18581efe36de69c1714b11a50c1b8ba3bba18f69 (patch) | |
tree | c1b6867ae66c106dc02a7c05a291ffc83425e99d /Doc/tutorial | |
parent | 8ef1fcecc546f254e8b55d50ef82a433fc280641 (diff) | |
parent | fd448daf770de7ceb5f433c40a14c9a889dffa92 (diff) | |
download | cpython-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.rst | 2 |
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 |