Commits (1)
......@@ -1148,7 +1148,7 @@ cdef class TateAlgebraElement(CommutativeAlgebraElement):
if self._prec is Infinity: return
cdef int v
cdef pAdicGenericElement coeff
for (e,c) in self._poly.__repn.items():
for (e,c) in list(self._poly.__repn.items()):
v = (<ETuple>self._parent._log_radii).dotprod(<ETuple>e)
coeff = self._poly.__repn[e]
if coeff.precision_absolute() > self._prec - v:
......
......@@ -80,7 +80,7 @@ cdef _groebner_basis_buchberger(I, prec, bint integral):
if g == 0: continue
gb.append(g)
l += 1
indices = range(l)
indices = list(range(l))
# We minimize the family of generators
rgb = gb[:]
......