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

Andrew Koenig ark at research.att.com
Sun Feb 9 21:25:36 EST 2003


Paul> Yes, yes. We all know about this. If y might evaluate as false, I
Paul> wouldn't use this. I'm not incompetent, you know.

I'm not worrieed about you; I'm worried about someone else reading
your code who might not realize that (cond and expr1 or expr2)
doesn't always work, and might use it in a case where it fails.

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




More information about the Python-list mailing list