[Python-Dev] conditional expressions?

Fredrik Lundh fredrik@pythonware.com
Wed, 17 Oct 2001 17:03:04 +0200


guido wrote:

> I still like
> 
>     (if cond then expr else expr)
> 
> better than any of these.

I guess I've lost track of all the proposals here; what's
the current main proposal?

    (if cond then expr else expr)

with mandatory parentheses?

not too bad -- but I doubt it will save me much time in
real life...  (probably a net loss: even if I could use this
from time to time, it's not like I have to use much brain-
power to spell it out in today's python...)

</F>