anything new on the ternary operator?

Andreas Jung lists at andreas-jung.com
Mon Jul 7 07:16:13 CEST 2003


--On Montag, 7. Juli 2003 2:13 Uhr +0000 Russell Reagan <rreagan at attbi.com> 
wrote:

> "Bob Gailer" <bgailer at alum.rpi.edu> wrote
>
>> I was looking forward to having it.
>
> "Sean Ross" <sross at connectmail.carleton.ca> wrote
>
>> - (if C: x else: y) won the vote
>
> I'm still learning python, so don't flame too much :-)
>
> What is superior about using the proposed ternary operator instead of
> using the 'and' and 'or' operators to simulate inline logic?

Please stop the discussion. The ternary operator is dead (which is a very 
good thing)
because GvR made the decision.

-aj





More information about the Python-list mailing list