what's wrong with "lambda x : print x/60,x%60"

garyrob grobinson at goombah.com
Wed Dec 21 13:17:16 EST 2005


> I don't understand why the critics of lambda don't understand that
> having to use so many temp variables, for either numbers or functions,
> can work against both concision and clarity.

I agree with this completely. My company has a rather large application
written in Python (http://www.goombah.com) and I find that lambdas make
code more concise and clear in a manner not unlike, for instance, list
comprehensions. I just don't see what gain would ensue from losing
them.

Gary

---

Gary Robinson
CTO
Emergent Music, LLC
grobinson at goombah.com




More information about the Python-list mailing list