Python's simplicity philosophy

Robin Becker robin at jessikat.fsnet.co.uk
Thu Nov 13 21:00:32 CET 2003


In article <mailman.670.1068656478.702.python-list at python.org>, Michael
T. Babcock <mbabcock at fibrespeed.net> writes
......
>I'm hoping you were being sarcastic ... but I get the feeling you aren't.
>
>Why, pray-tell, would you want an OO program to do:
>
>results = [ func(x) for x in sequence ]
>
>... instead of ...
>
>results = sequence.map(func) ??
>
.... well actually I'm quite happy with reduce as a function or as a
method on sequences. I actually feel uncomfortable with all the plethora
of iteration tools, comprehensions etc etc. However, I'm not forced to
use them.
-- 
Robin Becker




More information about the Python-list mailing list