Skip to content

Commit

Permalink
Deprecate is_Ring
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 26, 2024
1 parent ab24dac commit 505eaed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sage/rings/ring.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1646,9 +1646,16 @@ def is_Ring(x):
sage: from sage.rings.ring import is_Ring
sage: is_Ring(ZZ)
doctest:warning...
DeprecationWarning: The function is_Ring is deprecated; use '... in Rings()' instead
See https://github.com/sagemath/sage/issues/38288 for details.
True
sage: MS = MatrixSpace(QQ, 2) # needs sage.modules
sage: is_Ring(MS) # needs sage.modules
True
"""
from sage.misc.superseded import deprecation_cython
deprecation_cython(38288,
"The function is_Ring is deprecated; "
"use '... in Rings()' instead")
return x in _Rings

0 comments on commit 505eaed

Please sign in to comment.