Proposed PEP for a Conditional Expression
tjreedy at home.com
Thu Sep 13 04:02:22 CEST 2001
"Greg Ewing" <greg at cosc.canterbury.ac.nz> wrote in message
news:3BA00239.DECE6412 at cosc.canterbury.ac.nz...
> "Terry Reedy" <tjreedy at home.com>:
> > I agree that the above is backwards.
> > <cond> if <expr> else <expr>
> No! That sounds way too much like Forth!
It is exactly like C, whose ? : equivalent is the impetus for the
Of course, if you don't like the form of C's conditional expressions,
you won't like its translation into Python.
Terry J. Reedy
More information about the Python-list