Skip to content

Commit c2f873d

Browse files
committed
update docstring
1 parent c42fa0a commit c2f873d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/flint/types/fmpz.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ cdef class fmpz(flint_scalar):
684684

685685
def is_perfect_power(self):
686686
r"""
687-
Return True if this integer is of the form `r^k`, False otherwise.
687+
Return True if this integer is of the form `r^k` with `k>1`, False otherwise.
688+
`0, 1, -1` are considered perfect powers.
688689
689690
>>> fmpz(81).is_perfect_power()
690691
True

0 commit comments

Comments
 (0)