[Zope3-Users] Re: Fwd: Re: test() in TALES in Zope3

Michael Dudzik mdudzikml at gmail.com
Wed Feb 1 15:44:53 EST 2006


On Wed, 01 Feb 2006 14:34:26 -0600, "Michael Dudzik"
<mdudzikml at gmail.com> said:
> On Wed, 1 Feb 2006 14:57:58 -0500, "Paul Winkler" <pw_lists at slinkp.com>
> said:
> > Prior to python 2.5, there is AFAIK no other always-works
> > short-circuiting one-line conditional expression but this:
> > (bool(C) and [foo] or [bar])[0]

oops, my error.  I guess you're right about the evaluation of only the
appropriate value here.  Hmmm.  I didn't realize that



More information about the Zope3-users mailing list