Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #34372: Make is_integral_domain() have the same signature
This is not fully consistent within Sage: {{{ travis@tscrim:~/sage-build$ grep -R "def is_integral_domain" src/sage/* src/sage/algebras/steenrod/steenrod_algebra.py: def is_integral_domain(self, proof=True): src/sage/algebras/quatalg/quaternion_algebra.py: def is_integral_domain(self, proof=True) -> bool: src/sage/categories/integral_domains.py: def is_integral_domain(self): src/sage/categories/group_algebras.py: def is_integral_domain(self, proof=True): src/sage/combinat/sf/sfa.py: def is_integral_domain(self, proof=True): src/sage/manifolds/chart_func.py: def is_integral_domain(self, proof=True): src/sage/rings/quotient_ring.py: def is_integral_domain(self, proof=True): src/sage/rings/ring.pyx: def is_integral_domain(self, proof = True): src/sage/rings/ring.pyx: def is_integral_domain(self, proof = True): src/sage/rings/finite_rings/integer_mod_ring.py: def is_integral_domain(self, proof=None): src/sage/rings/multi_power_series_ring.py: def is_integral_domain(self, proof=False): src/sage/rings/polynomial/laurent_polynomial_ring.py: def is_integral_domain(self, proof=True): src/sage/rings/polynomial/multi_polynomial_ring_base.c: * def is_integral_domain(self, proof=True): src/sage/rings/polynomial/multi_polynomial_ring_base.c: * def is_integral_domain(self, proof=True): # <<<<<<<<<<<<<< src/sage/rings/polynomial/multi_polynomial_ring_base.c: * def is_integral_domain(self, proof=True): # <<<<<<<<<<<<<< src/sage/rings/polynomial/polynomial_quotient_ring.py: def is_integral_domain(self, proof = True): src/sage/rings/polynomial/infinite_polynomial_ring.py: def is_integral_domain(self, *args, **kwds): src/sage/rings/polynomial/polynomial_ring.py: def is_integral_domain(self, proof = True): src/sage/rings/polynomial/multi_polynomial_ring_base.pyx: def is_integral_domain(self, proof=True): src/sage/rings/polynomial/multi_polynomial_ring.py: def is_integral_domain(self, proof=True): src/sage/rings/tate_algebra.py: def is_integral_domain(self): src/sage/rings/ring.c: * def is_integral_domain(self, proof = True): src/sage/rings/ring.c: * def is_integral_domain(self, proof = True): # <<<<<<<<<<<<<< src/sage/rings/ring.c: * def is_integral_domain(self, proof = True): # <<<<<<<<<<<<<< src/sage/rings/ring.c: * def is_integral_domain(self, proof = True): src/sage/rings/ring.c: * def is_integral_domain(self, proof = True): # <<<<<<<<<<<<<< src/sage/rings/ring.c: * def is_integral_domain(self, proof = True): # <<<<<<<<<<<<<< }}} This causes failures for the tests that also pass a proof argument. For example: {{{ sage: A.<x,y> = TateAlgebra(Zp(3)) sage: R.<a,b> = PolynomialRing(A) sage: R.is_integral_domain() ------------------------------------------------------------------------ --- TypeError Traceback (most recent call last) Input In [3], in <cell line: 1>() ----> 1 R.is_integral_domain() File ~/sage/src/sage/rings/polynomial/multi_polynomial_ring_base.pyx:108, in sage.rings.polynomial.multi_polynomial_ring_base.MPolynomialRing_base.is _integral_domain() 106 False 107 """ --> 108 return self.base_ring().is_integral_domain(proof) 109 110 def is_noetherian(self): TypeError: TateAlgebra_generic.is_integral_domain() takes 1 positional argument but 2 were given }}} URL: https://trac.sagemath.org/34372 Reported by: tscrim Ticket author(s): Travis Scrimshaw Reviewer(s): Frédéric Chapoton
- Loading branch information