For review: PEP 308 - If-then-else expression
Erik Max Francis
max at alcyone.com
Fri Feb 7 22:40:36 EST 2003
Sean Ross wrote:
> While I do not think this is necessary, I would like to offer an
> alternative
> syntax:
>
> <expression1> when <condition> else <expression2>
I suspect that any proposal that suggests the introduction of a new
keyword is going to get shot down pretty quickly.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Shooters, looters / Now I got a laptop computer
\__/ Ice Cube
Kepler's laws / http://www.alcyone.com/max/physics/kepler/
A proof of Kepler's laws.
More information about the Python-list
mailing list