[Python-Dev] Adding a conditional expression in Py3.0
Steven Bethard
steven.bethard at gmail.com
Tue Sep 20 23:33:19 CEST 2005
More information about the Python-Dev mailing list
Tue Sep 20 23:33:19 CEST 2005
- Previous message: [Python-Dev] Adding a conditional expression in Py3.0
- Next message: [Python-Dev] Adding a conditional expression in Py3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
STeVe
--
You can wordify anything if you just verb it.
--- Bucky Katt, Get Fuzzy
- Previous message: [Python-Dev] Adding a conditional expression in Py3.0
- Next message: [Python-Dev] Adding a conditional expression in Py3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list