For review: PEP 308 - If-then-else expression

Andrew Koenig ark at
Fri Feb 7 23:51:50 CET 2003

Jamie> Ah, of course, an expression returns a value (duh).  I see the
Jamie> motivation better now.  Still, I can imagine that it would get
Jamie> (ab)used in contexts where the result was ignored, just as an
Jamie> alternative conditional syntax.

I guess it's not much different from abusing lambda expressions
in contexts where ordinary functions would be better.

Andrew Koenig, ark at,

More information about the Python-list mailing list