def on_compare(self, node):    # ('left', 'ops', 'comparators')
        lval = self.run(node.left)
        out  = True
        for oper, rnode in zip(node.ops, node.comparators):
            comp = OPERATORS[oper.__class__]
            rval = self.run(rnode)
            out  = comp(lval, rval)
            lval = rval
            if not hasattr(out, 'any') and not out:
                break
        return out
comparison operators
dataset/ETHPy150Open xraypy/xraylarch/lib/interpreter.py/Interpreter.on_compare