@_sympifyit('n', NotImplemented)
    def __pow__(f, n):
        if n.is_Integer and n >= 0:
            return f.pow(n)
        else:
            return f.as_expr()**n
dataset/ETHPy150Open sympy/sympy/sympy/polys/polytools.py/Poly.__pow__/original