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

Bug #1814427 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
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)
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)
description: updated
RaiMan (raimund-hocke)
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
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
milestone: 1.1.4 → 2.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.