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

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Tue Sep 20 19:29:46 CEST 2005

Guido van Rossum wrote:

> Given this realization, I'm now -1 on Raymond's idea, and +1 on adding
> a conditional expression. I believe (y if x else z) was my favorite
> last time, wasn't it? I've changed the subject accordingly.

As the PEP states, I'm not sure if changing the customary order of "arguments"
in conditional expressions is good.

Also, I assume the thing will be short-circuiting, and it's confusing to
grasp that y in (y if x else z) will possibly never be evaluated.


Mail address is perfectly valid!

More information about the Python-Dev mailing list