Ternary Operator in Python
Erik Max Francis
max at alcyone.com
Fri Apr 1 05:10:44 EST 2005
Sean Kemplay wrote:
> You could use
>
> condition and consequent or alternative
>
> I use it
You should do so cautiously, since if consequent is false, it will not
behave as suspected. Not to mention that it's quite unreadable.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Physics, as we know it, will be over in six months.
-- Max Born (1928)
More information about the Python-list
mailing list