Skip to content

Commit 3cf1002

Browse files
committed
Further performance improvement
1 parent a49dfb6 commit 3cf1002

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sage/symbolic/function.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ from sage.structure.sage_object cimport SageObject
141141
from sage.structure.element cimport Element, parent, Expression
142142
from sage.misc.lazy_attribute import lazy_attribute
143143

144+
from sage.structure.parent cimport Parent
144145
from sage.structure.coerce cimport (coercion_model,
145146
py_scalar_to_element, is_numpy_type, is_mpmath_type)
146147
from sage.structure.richcmp cimport richcmp
@@ -1054,6 +1055,7 @@ cdef class BuiltinFunction(Function):
10541055
res = super().__call__(
10551056
*args, coerce=coerce, hold=hold)
10561057

1058+
cdef Parent arg_parent
10571059
if any(isinstance(x, Element) for x in args):
10581060
if (self._preserved_arg
10591061
and isinstance(args[self._preserved_arg-1], Element)):

0 commit comments

Comments
 (0)