changeset: 79212:8a4a88b1e964 parent: 79210:b21e28790c03 parent: 79211:6c96878eb729 user: Chris Jerdonek date: Fri Sep 28 07:24:24 2012 -0700 files: Doc/tutorial/datastructures.rst description: Close issue #16073: merge fix from 3.2. diff -r b21e28790c03 -r 8a4a88b1e964 Doc/tutorial/datastructures.rst --- a/Doc/tutorial/datastructures.rst Fri Sep 28 15:19:45 2012 +0100 +++ b/Doc/tutorial/datastructures.rst Fri Sep 28 07:24:24 2012 -0700 @@ -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

AltStyle によって変換されたページ (->オリジナル) /