File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/sage/rings/polynomial Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1253,6 +1253,12 @@ cdef class Polynomial_dense_modn_ntl_zz(Polynomial_dense_mod_n):
12531253 sage: S.<y> = PolynomialRing(Integers(5), implementation='NTL')
12541254 sage: f(y)
12551255 y^3 + 2
1256+ sage: f(1).parent() == R.base_ring()
1257+ True
1258+ sage: f(int(1)).parent() == R.base_ring()
1259+ True
1260+ sage: f(x + 1).parent() == f.parent()
1261+ True
12561262 """
12571263 if len (args) != 1 or len (kwds) != 0 :
12581264 return Polynomial.__call__ (self , * args, ** kwds)
@@ -1273,7 +1279,7 @@ cdef class Polynomial_dense_modn_ntl_zz(Polynomial_dense_mod_n):
12731279 return Polynomial.__call__ (self , * args, ** kwds)
12741280 else :
12751281 zz_pX_eval(fx.x, self .x, x.x)
1276- return self ._parent(int (fx))
1282+ return self ._parent._base (int (fx))
12771283
12781284
12791285cdef class Polynomial_dense_modn_ntl_ZZ(Polynomial_dense_mod_n):
You can’t perform that action at this time.
0 commit comments