Proposed PEP for a Conditional Expression

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Sep 13 18:56:09 EDT 2001


Terry Reedy wrote:
> 
> <cond> if <expr> else <expr>
>
> ... is exactly like C, whose ? : equivalent is the impetus for the
> proposed change.

No, it's not, because the C syntax doesn't use
English words in a misleading way. That's what
I was objecting to, not the order of the
operands.

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list