[Python-Dev] Adding a conditional expression in Py3.0
raymond.hettinger at verizon.net
Tue Sep 20 22:17:43 CEST 2005
[Guido van Rossum]
> > In fact, I think Raymond's example is more properly considered an
> > argument for adding a conditional expression than for removing the
> > current behavior of the and/or shortcut operators; had we had a
> > conditional expression, he wouldn't have tried to use the "x and y
> > z" syntax that bit him.
> I agree.
> Given the later addition of generator expressions with mandatory
> parentheses , the mandatory-parentheses version of a conditional
> looks less strange to me than it did then ;-).
More information about the Python-Dev