PEP 308 - ternary operator

Erik Max Francis max at alcyone.com
Wed Feb 12 19:27:49 EST 2003


Michele Simionato wrote:

> I am not so hot on the built-in function/macro, however I have an
> idea:
> why not the syntax "__if__(C,x,y)" ?

That's better, but still doesn't eliminate the special form, which has
been explicitly rejected as an option in the PEP.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ If you can't fight and you can't flee, flow.
\__/ Robert Elliot
    Physics reference / http://www.alcyone.com/max/reference/physics/
 A physics reference.




More information about the Python-list mailing list