Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 6d0da24

Browse files
committed
One last zero_element removed + correct one doctest
1 parent 98b7ca1 commit 6d0da24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sage/rings/polynomial/polynomial_element.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7976,7 +7976,7 @@ cdef class Polynomial_generic_dense(Polynomial):
79767976
q = R(x[n+k-1]/y[n-1])
79777977
except TypeError:
79787978
raise ArithmeticError("Division non exact (consider coercing to polynomials over the fraction field)")
7979-
x[n+k-1] = R.zero_element()
7979+
x[n+k-1] = R.zero()
79807980
for j from n+k-2 >= j >= k:
79817981
x[j] -= q * y[j-k]
79827982
quo.insert(0,q)

src/sage/rings/polynomial/polynomial_element_generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def quo_rem(self, other):
666666
sage: f.quo_rem(g)
667667
Traceback (most recent call last):
668668
...
669-
ArithmeticError: Nonunit leading coefficient
669+
ArithmeticError: Division non exact (consider coercing to polynomials over the fraction field)
670670
sage: g = 0
671671
sage: f.quo_rem(g)
672672
Traceback (most recent call last):

0 commit comments

Comments
 (0)