On Tuesday, August 16, 2016 at 7:19:01 PM UTC+12, Ian wrote: > On Aug 16, 2016 12:36 AM, "Lawrence D’Oliveiro" wrote: > > The difference being that the “map” function takes an iterable and returns > an iterator. > > In Python 3, yes. However, assigning the result to the name > "squared_plus_one_list" implies that the author was probably considering > Python 2 code, in which map returns a list, so the comprehension is > equivalent.
Why was the change made? Because it was important. -- https://mail.python.org/mailman/listinfo/python-list