fractions.Fraction.__pow__

Fraction.__pow__(a, b)[source]

a ** b

If b is not an integer, the result will be a float or complex since roots are generally irrational. If b is an integer, the result will be rational.