Abstract and concrete syntax

David Baelde david.baelde at ens-lyon.fr
Fri Jun 10 16:14:24 EDT 2005


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




More information about the Python-list mailing list