def __ne__(s, t):
        ttype = type(t)
        if ttype is mpq:
            return s._mpq_ != t._mpq_
        if ttype in int_types:
            a, b = s._mpq_
            if b != 1:
                return True
            return a != t
        return NotImplemented
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/rational.py/mpq.__ne__/original