[1.1.4] Python scripting: all([]) function not working --- fixed 2019-02-03 build #188

Bug #1814427 reported by RaiMan on 2019-02-03
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Critical
RaiMan

Bug Description

********************** workaround up to version 1.1.3:
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

RaiMan (raimund-hocke) on 2019-02-03
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
RaiMan (raimund-hocke) on 2019-02-03
description: updated
RaiMan (raimund-hocke) on 2019-02-03
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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers