[Python-Dev] PEP308 alternative syntax: bool method

Skip Montanaro skip@pobox.com
Fri, 14 Feb 2003 10:59:27 -0600


    Mark>     var = (x > 10).choose(ifyes, ifno)

Still no short-circuit.  "ifyes" and "ifno" are both evaluated independent
of the value of the boolean expression.

Skip