def __eq__(self, other):
        return (self.reg == other.reg) and (self.dtyp == other.dtyp)
Checks if two register operands are equal by checking the register number and its dtype
dataset/ETHPy150Open EiNSTeiN-/idapython/pywraps/py_ua.py/op_t.__eq__