[Python-Dev] Adding a conditional expression in Py3.0

Raymond Hettinger 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
or
> > z" syntax that bit him.

[Terry Reedy]
> I agree.

Me too.



> Given the later addition of generator expressions with mandatory
> parentheses , the mandatory-parentheses version of a conditional
> expression
> looks less strange to me than it did then ;-). 

Same here.



Raymond



More information about the Python-Dev mailing list