Proposed PEP for a Conditional Expression

Joshua Marshall jmarshal at mathworks.com
Wed Sep 12 10:43:15 EDT 2001


thp at cs.ucr.edu wrote:
> Bernhard Herzog <bh at intevation.de> wrote:
> [...]
> : Another way that come to mind:

> :         <expr> if <cond> else <expr>

One thing I don't like about this suggestion is that <cond> is
evaluated before the first <expr> is [potentially] evaluated, even
though <expr> syntactically precedes <cond>.



More information about the Python-list mailing list