For review: PEP 308 - If-then-else expression
adalke at mindspring.com
Sat Feb 8 09:55:41 CET 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
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.
dalke at dalkescientific.com
More information about the Python-list