def __pow__(s, t):
        ttype = type(t)
        if ttype in int_types:
            a, b = s._mpq_
            if t:
                if 0 < t:
                    a, b, t = b, a, -t
                v = new(mpq)
                v._mpq_ = a**t, b**t
                return v
            raise ZeroDivisionError
        return NotImplemented
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/rational.py/mpq.__pow__/swapped operands of `<`