For review: PEP 308 - If-then-else expression

Erik Max Francis max at
Sat Feb 8 05:46:34 CET 2003

Andrew Koenig wrote:

> I think it would be great if someone came up with an obviously
> better syntax, but I'd greatly prefer the present proposal to nothing.

That's exactly my view, as well.  I would prefer `if p then x else y',
but if an extra keyword is absolutely contradindicated, then I'll settle
for `x if p else y'.  I just want the functionality, I can learn to use
the syntax.

 Erik Max Francis / max at /
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ The doors of Heaven and Hell are adjacent and identical.
\__/ Nikos Kazantzakis Return to Wolfenstein /
 A personal guide to Return to Castle Wolfenstein.

More information about the Python-list mailing list