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

Andrew Koenig ark at research.att.com
Fri Feb 7 17:51:50 EST 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 research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list