Draft Pep (was: Re: Let's Talk About Lambda Functions!)

Greg Ewing see_reply_address at something.invalid
Wed Aug 7 05:58:06 CEST 2002


Samuel Bronson wrote:

> "John Roth" <johnroth at ameritech.com> wrote in message
> news:ukvgmltbldvd9e at news.supernews.com...
>  > is simply too much of a change to the language. Just to mention one
>  > of the issues: how do you do a clean if/else/elif syntax in an
>  > expression
>  > format?
> You don't like "expr '?' expr ':' expr"?


In the case where the sub-parts are all expressions, this
has already been solved:

   <expr> if <expr> else <expr>

The BDFL doesn't like it, though, which is a pity, because
I think it's one of the more elegant things to come out of
the ever-recurring ?: wars.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list