Colin J. Williams wrote:
> Yes, I agree. The ternary operator is a step forward.
That's still debateable ;)
Pro: It puts paid to the "python doesn't have a ternary operator" and
and/or abuse.
Con: It shouldn't ever be used.
Cheers,
Tim Delaney
--
http://mail.python.org/mailman/listinfo/pyth
Colin J. Williams wrote:
> It would be helpful if the rules of the game were spelled out more clearly.
>
> The conditional expression is defined as X if C else Y.
> We don't know the precedence of the "if" operator. From the little test
> below, it seem to have a lower precedence than "or".
The r
Colin J. Williams wrote:
> It would be helpful if the rules of the game were spelled out more clearly.
>
> The conditional expression is defined as X if C else Y.
> We don't know the precedence of the "if" operator. From the little test
> below, it seem to have a lower precedence than "or".
>
>
Paddy wrote:
> On Jan 30, 9:51 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote:
>> It would be helpful if the rules of the game were spelled out more clearly.
>>
>> The conditional expression is defined as X if C else Y.
>> We don't know the precedence of the "if" operator. From the little test
On Jan 30, 9:51 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote:
> It would be helpful if the rules of the game were spelled out more clearly.
>
> The conditional expression is defined as X if C else Y.
> We don't know the precedence of the "if" operator. From the little test
> below, it seem to