reduce to be removed?
DustanGroups at gmail.com
Sat Nov 11 23:10:12 CET 2006
According to the following page on Wikipedia:
reduce is going to be removed in python 3.0. It talks of an
accumulation loop; I have no idea what that's supposed to mean. So,
>>> x =\
>>> reduce(lambda a,b:a+b, x, )
[1, 2, 3, 4, 5, 6, 7, 8, 9]
What's an accumulation loop, and how would I convert this code so it's
compatible with the future 3.0 (preferably in a short sweet expression
that I can embed in a list comprehension)?
More information about the Python-list