PEP 308 - suggestion for generalising the ternary operator

Erik Max Francis max at alcyone.com
Wed Feb 12 19:21:05 EST 2003


Oren Tirosh wrote:

> (cond:value, cond:value, cond:value, cond:value, default_value)
> 
> Or maybe:
> 
> (cond:value, cond:value, cond:value, cond:value, else:default_value)

My first reaction is that, as a general conditoinal form, that doesn't
look so bad.

-- 
 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