On Wed, 01 Feb 2006 14:34:26 -0600, "Michael Dudzik" <[EMAIL PROTECTED]> said: > On Wed, 1 Feb 2006 14:57:58 -0500, "Paul Winkler" <[EMAIL PROTECTED]> > 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 _______________________________________________ Zope3-users mailing list [email protected] http://mail.zope.org/mailman/listinfo/zope3-users
