[ZPT] python:OR problems

Dieter Maurer dieter@handshake.de
Sat, 8 Sep 2001 00:40:01 +0200 (CEST)


ksmith@99hats.com writes:
 > tal:define="batch python:path('request/batch') or 5; b_start python:path('request/b_start') or 5;"

The "path(...)" will fail (exception) when "request" does not contain
the given names.

While the '|' in "path1 | path2" evaluates "path2" if "path1"
evaluation raises an exception,
Python's "or" does not work this way: "exp1 or exp2" raises
an exception, if "exp1" does....


Dieter