[1.1.4] Python scripting: all([]) function not working
Asked by
xslapuhk
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
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask xslapuhk for more information if necessary.
To post a message you must log in.