8 Jun
2001
8 Jun
'01
1:40 p.m.
From: <olpa@sybcom.de>
s1 = { 'a': 1, 'b': 0 } s2 = { 'a': s1['a'] and s1['b'] } return s2
Some versions of the PythonScripts Product don't properly handle a mixture of subobject access and boolean operators. You can rewrite this as: s1 = { 'a': 1, 'b': 0 } s1a = s1['a'] s1b = s1['b'] s2 = { 'a': s1a and s1b } return s2 I think this is fixed in Zope 2.3.2. Cheers, Evan @ digicool