[1.1.4] Python scripting: all([]) function not working --- fixed 2019-02-03 build #188
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
Critical
|
RaiMan |
Bug Description
*******
import __builtin__ as JY
a = 1
b = 1
if JY.all([a == 1, b == 1]):
print ("yes")
else:
print("no")
-------
all([]) operator is not working but other operators like any([]) work. example:
a = 1
b = 1
if all([a == 1, b == 1]):
print ("yes")
else:
print("no")
error:
[error] script [ all any test ] stopped with error in line 3
[error] TypeError ( all(): expected 0 args; got 1 )
same script with any([]) operator works:
a = 1
b = 1
if any([a == 1, b == 1]):
print ("yes")
else:
print("no")
("yes" is printed)
this is not a problem with Jython i tested both scripts with plain Jython
i am using SikuliX 1.1.3 for mac
Changed in sikuli: | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.4 |
summary: |
- [1.1.4] Python scripting: all([]) function not working + [1.1.4] Python scripting: all([]) function not working --- workaround |
description: | updated |
Changed in sikuli: | |
importance: | High → Critical |
description: | updated |
summary: |
- [1.1.4] Python scripting: all([]) function not working --- workaround + [1.1.4] Python scripting: all([]) function not working --- fixed + 2019-02-03 build #188 |
Changed in sikuli: | |
status: | Fix Committed → Fix Released |
milestone: | 1.1.4 → 2.0.0 |