[Tutor] multiple function returns

Jim Mooney cybervigilante at gmail.com
Fri Jun 28 20:51:56 CEST 2013


On 28 June 2013 09:12, Chris “Kwpolska” Warrick

> Or even:
>
> foo = lambda x: bool(x)

Now you'll make me learn what lambda is.

Ah, it's like an anonymous function in jQuery, which I found very
handy when I hacked around with it to get kewl stuff on to web pages.
Although it looks a bit obfuscated for Python - I
guess one could get Too lazy. ;')

Jim


More information about the Tutor mailing list