[Python-Dev] Adding a conditional expression in Py3.0
steven.bethard at gmail.com
Tue Sep 20 23:33:19 CEST 2005
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.
FWIW, I find this quite intuitive. It follows the same pattern as LCs
and GEs -- remove the colons and add parentheses (or brackets for
LCs). So I'm +1.
You can wordify anything if you just verb it.
--- Bucky Katt, Get Fuzzy
More information about the Python-Dev