def _cmp(self, other, op):
        try:
            diff = self - other
        except __HOLE__:
            return NotImplemented
        else:
            return op(diff.p, 0)
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/pythonrational.py/PythonRational._cmp