Let's Talk About Lambda Functions!
Robin Becker
robin at jessikat.fsnet.co.uk
Thu Aug 15 04:08:33 EDT 2002
In article <c427d639.0208141740.7d1352e1 at posting.google.com>, Robert
Hanlin <findler_lambda at yahoo.com> writes
......
>Argh, why not write this in the Tutorial? A sentence on its own line
>saying that lambda is a minor convenience, and that all the horrors
>commited in its name were not Pythonic. I wouldn't write in Python
>half as much as I do now if I didn't have functional stuff. But
>lambda is not important to me, except that when it makes code cleaner,
>it works like a madman.
....
The map, filter and reduce things work well when the function is a
builtin and produce the fastest ways to do things to a list. There
aren't enough useful builtin selectors though. List comprehensions are
just syntactic sugar round python loops and aren't fast.
--
Robin Becker
More information about the Python-list
mailing list