In Python3.X, when passing methods into Map/Filter/Reduce, why is it done without '()'? Does this apply to all generators?
This is probably a simple question but I can't find a clear answer in docs. I'm hoping to understand the reasons rather than just "memorizing" syntax.
e.g.
map(str.upper, ['a', 'b', 'c']) #this works
vs
map(str.upper(), ['a', 'b', 'c']) #this gives an error