[Python-checkins] cpython (merge default -> default): Merge.
stefan.krah
python-checkins at python.org
Fri Sep 28 16:29:14 CEST 2012
http://hg.python.org/cpython/rev/f69dc59bfc53
changeset: 79214:f69dc59bfc53
parent: 79213:3f5fedb17a78
parent: 79212:8a4a88b1e964
user: Stefan Krah <skrah at bytereef.org>
date: Fri Sep 28 16:21:17 2012 +0200
summary:
Merge.
files:
Doc/tutorial/datastructures.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -186,7 +186,7 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list