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

Samuele Pedroni pedronis at bluewin.ch
Sun Feb 9 21:57:05 EST 2003


"Andrew Koenig" <ark at research.att.com> ha scritto nel messaggio
news:yu99bs1koorj.fsf at europa.research.att.com...
> 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.
>

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






More information about the Python-list mailing list