File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4053,7 +4053,7 @@ cdef class PrincipalIdealDomainElement(DedekindDomainElement):
4053
4053
right = py_scalar_to_element(right)
4054
4054
if not isinstance (right, Element):
4055
4055
right = right.sage()
4056
- from sage.arith.misc import GCD as gcd
4056
+ if not (( < Element > right)._parent is self ._parent):
4057
4057
from sage.arith.misc import GCD as gcd
4058
4058
return coercion_model.bin_op(self , right, gcd)
4059
4059
return self ._gcd(right)
@@ -4087,7 +4087,7 @@ cdef class PrincipalIdealDomainElement(DedekindDomainElement):
4087
4087
right = py_scalar_to_element(right)
4088
4088
if not isinstance (right, Element):
4089
4089
right = right.sage()
4090
- from sage.arith.functions import lcm
4090
+ if not (( < Element > right)._parent is self ._parent):
4091
4091
from sage.arith.functions import lcm
4092
4092
return coercion_model.bin_op(self , right, lcm)
4093
4093
return self ._lcm(right)
You can’t perform that action at this time.
0 commit comments