Original issue sympy/sympy#22141
>>> import sympy, symengine
>>> a = symengine.symbols('a', cls = symengine.Dummy)
>>> a
_a
>>> sympy.sympify(a)
__a
sympify should return a dummy without the additional underscore.
The problem is here-
|
def _sympy_(self): |
|
import sympy |
|
return sympy.Dummy(str(self)) |
the Dummy conversion takes the dummy name of symengine type which gives it two underscores
Original issue sympy/sympy#22141
sympifyshould return a dummy without the additional underscore.The problem is here-
symengine.py/symengine/lib/symengine_wrapper.pyx
Lines 1263 to 1265 in 5d49ad3
the Dummy conversion takes the dummy name of symengine type which gives it two underscores