Skip to content

Commit 505eaed

Browse files
author
Matthias Koeppe
committed
Deprecate is_Ring
1 parent ab24dac commit 505eaed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/rings/ring.pyx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,9 +1646,16 @@ def is_Ring(x):
16461646
16471647
sage: from sage.rings.ring import is_Ring
16481648
sage: is_Ring(ZZ)
1649+
doctest:warning...
1650+
DeprecationWarning: The function is_Ring is deprecated; use '... in Rings()' instead
1651+
See https://github.com/sagemath/sage/issues/38288 for details.
16491652
True
16501653
sage: MS = MatrixSpace(QQ, 2) # needs sage.modules
16511654
sage: is_Ring(MS) # needs sage.modules
16521655
True
16531656
"""
1657+
from sage.misc.superseded import deprecation_cython
1658+
deprecation_cython(38288,
1659+
"The function is_Ring is deprecated; "
1660+
"use '... in Rings()' instead")
16541661
return x in _Rings

0 commit comments

Comments
 (0)