(a==b) ? 'Yes' : 'No'

Duncan Booth duncan.booth at invalid.invalid
Fri Apr 2 07:20:50 EDT 2010


Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> wrote:

> Yes, I agree, we should be using the previously well known syntax:
> 
> condition -> value_if_true, value_if_false
> 
> which was introduced by BCPL in 1966.
> 
What, not this?

VALOF TEST condition THEN RESULTIS value_if_true ELSE RESULTIS 
value_if_false

which was also introduced by BCPL in 1966.

:^)



More information about the Python-list mailing list