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

Andrew Koenig ark at research.att.com
Mon Feb 10 04:24:48 CET 2003


Samuele> There are ~100 instances of that in the std lib code, see Tim
Samuele> Peters post or the std lib directly, is for all to see.

Right.  So all those uses give the impression that the (cond and x or y)
technique works in all cases--which it doesn't.

If (cond and x or y) always worked, I don't think I would care about
introducing if-then-else expressions at all.

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list