Skip to content
Snippets Groups Projects
Commit 970f468e authored by Matt Wala's avatar Matt Wala
Browse files

map_Symbol: symengine returns a unicode object in Python 2, so coerce

it back to a string (will raise an error if it's actually non-ASCII).
parent 6a0b0bc9
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ class SympyLikeToPymbolicMapper(SympyLikeMapperBase):
# }}}
def map_Symbol(self, expr): # noqa
return prim.Variable(expr.name)
return prim.Variable(str(expr.name))
def map_Rational(self, expr): # noqa
p, q = expr.p, expr.q
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment