News for hackers. Stuff that matters.
Re:Learning to Program: Why Python? by sgt on Wednesday May 09, 2012 @03:37AM (#3947474)
Just enclose the anonymous function with "(" and ")". Then you can use an anonymous function longer than one line.

>>> f = lambda x: (x

            * x

            * x)
>>> f

<function <lambda> at 0x108cf3230>

Re:Learning to Program: Why Python? by jamiltron on Wednesday May 09, 2012 @10:59AM (#3948858)
Yes, but unfortunately it can only be a single expression.