Skip to content

Commit

Permalink
sage.symbolic.callable: Remove function deprecated in sagemath#34215
Browse files Browse the repository at this point in the history
…(2022)
  • Loading branch information
mkoeppe committed Oct 11, 2023
1 parent 2a5bbce commit ff06d30
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/sage/symbolic/callable.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,35 +70,6 @@
# Callable functions
######################################################################

def is_CallableSymbolicExpression(x):
r"""
Return ``True`` if ``x`` is a callable symbolic expression.
EXAMPLES::
sage: from sage.symbolic.callable import is_CallableSymbolicExpression
sage: var('a x y z')
(a, x, y, z)
sage: f(x,y) = a + 2*x + 3*y + z
sage: is_CallableSymbolicExpression(f)
doctest:warning...
DeprecationWarning: is_CallableSymbolicExpression is deprecated;
use isinstance(..., Expression) and ....is_callable() instead
See https://github.com/sagemath/sage/issues/34215 for details.
True
sage: is_CallableSymbolicExpression(a+2*x)
False
sage: def foo(n): return n^2
...
sage: is_CallableSymbolicExpression(foo)
False
"""
from sage.misc.superseded import deprecation
deprecation(34215, 'is_CallableSymbolicExpression is deprecated; use isinstance(..., Expression) and ....is_callable() instead')
from sage.structure.element import Expression
return isinstance(x, Expression) and isinstance(x.parent(), CallableSymbolicExpressionRing_class)


class CallableSymbolicExpressionFunctor(ConstructionFunctor):
def __init__(self, arguments):
"""
Expand Down

0 comments on commit ff06d30

Please sign in to comment.