Skip to content

Commit 9589530

Browse files
committed
make mod an optional arg
1 parent bc1e110 commit 9589530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flint/types/nmod_poly.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ cdef class nmod_poly(flint_poly):
471471
def __rmod__(s, t):
472472
return divmod(t, s)[1] # XXX
473473

474-
def __pow__(nmod_poly self, exp, mod):
474+
def __pow__(nmod_poly self, exp, mod=None):
475475
cdef nmod_poly res
476476
if mod is not None:
477477
return self.powmod(exp, mod)

0 commit comments

Comments
 (0)