On Fri, 10 Jun 2005 06:57:19 -0700, Kay Schluehr wrote: >> You can do stuff like this: lambda x: x and 2 or 3 > lambda x: {True:2,False:3}.get(bool(a))
I also think these solutions are just hacks, less efficient, less readable. One shouldn't have to twist her mind to write such an easy idea. __ David -- http://mail.python.org/mailman/listinfo/python-list