@classmethod
    def __getBinaryAttr(self, attr, parameters):
        
        x = getattr(self, attr)

        if x in [True, False]:
            return x
        else:
            pb = parameters[self._name]

            for t in [[], [pb], [pb, parameters]]:
                try:
                    ret = x(*t)
                    break
                except TypeError, te:

                    if str(te) in attr:
                        continue
                    else:
                        raise

            if ret not in [True, False]:
                raise TypeError("'%s' must evaluate to or "
                                "return True or False." % attr)
            return ret
dataset/ETHPy150Open hoytak/lazyrunner/lazyrunner/pmodule/pmodulebase.py/PModule.__getBinaryAttr/swapped operands of `in`