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

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Sep 24 11:00:24 CEST 2005

Terry Reedy wrote:

> Now, can you honestly say that you would (naively) read
>   return foo if bar else baz
> and be certain you knew what it meant?

I can honestly say that, given I knew I was reading Python
code, it would never have entered by head to read "foo if"
as meaning that "foo" was the condition. Bizarrely backwards
too much it would be.


More information about the Python-Dev mailing list