For review: PEP 308 - If-then-else expression
Andrew Dalke
adalke at mindspring.com
Sat Feb 8 03:55:41 EST 2003
Erik Max Francis:
> The point is, if you _are_ going to admit a true conditional expression
> syntax into the language, it damn sure better do short circuiting.
> There's absolutely no reason not to, even if in practice it is used
> rarely.
Agreed. My comment is meant to point out that if alternatives exist
in current Python but which don't short-circuit, then they should not
automatically be dismissed because most cases using the ternary operator
do not really depend on that behaviour.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list