For review: PEP 308 - If-then-else expression
Paul Rubin
http
Sun Feb 9 22:18:02 EST 2003
"Samuele Pedroni" <pedronis at bluewin.ch> writes:
> > 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.
I see that as evidence that a conditional expression is really needed,
if the std lib is so full of kludgy workarounds for its absence.
More information about the Python-list
mailing list