Let's Talk About Lambda Functions!
robin at jessikat.fsnet.co.uk
Thu Aug 15 10:08:33 CEST 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.
More information about the Python-list