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

Andrew Dalke adalke at
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
> 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.

                    dalke at

More information about the Python-list mailing list