[ZPT] REQUEST argument
richard@bizarsoftware.com.au
richard@bizarsoftware.com.au
Mon, 14 May 2001 09:01:05 +1000
Evan Simpson wrote:
> From: "Guido van Rossum" <guido@digicool.com>
> > Maybe we *should* differentiate. Then I propose a|b for "stop at the
> > first valid path" and a||b for "stop at the first valid path that
> > yields a true value."
>
> Yeah, I had the same idea. The original semantics can now be gotten through
> "python:path('a') or path('b')" or "path:(if) a | b" (since I haven't thrown
> out the modifiers, and the implementation now allows them on each alternate
> path). As it turns out, I barely needed it for the management screens I
> converted. If experience shows that this is a fluke, and we get a consensus
> on '||', it will be easy to add.
Just to reiterate - the behaviour you implemented is by far the most common
usage we've seen so far. We have yet to have a situation where we'd want
the subexpression to be ignored if it returned false. Explicit false values
are useful :)
Richard
--
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)