[Python-checkins] cpython (merge 3.2 -> default): Close issue #16073: merge fix from 3.2.

chris.jerdonek python-checkins at python.org
Fri Sep 28 16:26:12 CEST 2012


http://hg.python.org/cpython/rev/8a4a88b1e964
changeset:   79212:8a4a88b1e964
parent:      79210:b21e28790c03
parent:      79211:6c96878eb729
user:        Chris Jerdonek <chris.jerdonek at gmail.com>
date:        Fri Sep 28 07:24:24 2012 -0700
summary:
  Close issue #16073: merge fix from 3.2.

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