[Python-Dev] Adding a conditional expression in Py3.0
jcarlson at uci.edu
Thu Sep 22 17:38:07 CEST 2005
"Andrew Koenig" <ark at acm.org> wrote:
> > My problem with this syntax is that it can be hard to read:
> > return if self.arg is None then default else self.arg
> > looks worryingly like
> > return NAME NAME.NAME NAME NAME NAME NAME NAME NAME.NAME
> > to me.
> Interesting. What about
> return if self.arg is None: default else: self.arg
That's awful. It would confuse everyone as to why LCs and GEs don't
have punctuation while these do. In that sense, I am not convinced that
it should have keywords AND punctuation, one or the other.
More information about the Python-Dev