RE: Conditional expressions - PEP 308

2007-01-31 Thread Delaney, Timothy (Tim)
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

Re: Conditional expressions - PEP 308

2007-01-31 Thread Ziga Seilnacht
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

Re: Conditional expressions - PEP 308

2007-01-31 Thread Steven Bethard
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". > >

Re: Conditional expressions - PEP 308

2007-01-31 Thread Colin J. Williams
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

Re: Conditional expressions - PEP 308

2007-01-30 Thread Paddy
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