PEP 308: I liked the original proposal better

Erik Max Francis max at alcyone.com
Fri Feb 14 01:01:49 EST 2003


"Simon Wittber (Maptek)" wrote:

> Yes, the test is in the middle of the expression. The argument "This
> is
> not
> the way other languages do ternary expressions" is not a valid
> argument
> against its use. Python is about about doing things the Right Way, not
> the
> common accepted way.

But the fact that even many proponents of the PEP -- whether they've had
experience with conditional operators from other languages -- agree that
the order of the expressions is confusing should be a good indicator. 
People aren't saying it's awkward because it's not a copy from other
languages, they're saying it's awkward because they think it's awkward
on its own merits.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ The average dog is a nicer person than the average person.
\__/ Andrew A. Rooney
    Python chess module / http://www.alcyone.com/pyos/chess/
 A chess game adjudicator in Python.




More information about the Python-list mailing list