[Python-Dev] Adding a conditional expression in Py3.0
Phillip J. Eby
pje at telecommunity.com
Tue Sep 20 21:38:50 CEST 2005
At 12:17 PM 9/20/2005 -0700, Guido van Rossum wrote:
>I think I'd prefer (if <expr> then <expr> else <expre>) i.e. no
>colons. None of the other expression forms (list comprehensions and
>generator expressions) involving statement keywords use colons.
+1, despite the fact that we seem on a slippery slope towards becoming a
kind of infix Lisp. ;) Between (yield x), (x for x in y), and now (if x
then y else z), it seems that parentheses are all the rage now. Will we get
(try <expr> finally <expr>) next? <0.5 wink>
> > *If* you want general community input, I would suggest a runoff ballot with
> > those four choices (and a summary of pros and cons of each), or fewer if
> > you see any as unacceptible.
>
>If there's one thing I've learned from the PEP 308 vote, it is that
>votes for language don't work. I prefer some discussion on Python-dev
>after which I pick one.
Also +1. :)
More information about the Python-Dev
mailing list