Skip to content

Commit

Permalink
Deprecate is_FunctionFieldElement
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 26, 2024
1 parent ab24dac commit 2f08727
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sage/rings/function_field/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def is_FunctionFieldElement(x):
sage: sage.rings.function_field.element.is_FunctionFieldElement(0)
False
"""
from sage.misc.superseded import deprecation_cython
deprecation_cython(38289,
"The function is_FunctionFieldElement is deprecated; "
"use '....parent() in FunctionFields()' instead.")
if isinstance(x, FunctionFieldElement):
return True
from sage.rings.function_field.function_field import is_FunctionField
Expand Down

0 comments on commit 2f08727

Please sign in to comment.