← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #678305]: [1.1.4] Python scripting: all([]) function not working

 

Question #678305 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678305

Description changed to:
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

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.