Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Parsing Core
New issue 3324 by [email protected]: sympy.sympify doesn't accept a
string generated by sympy
http://code.google.com/p/sympy/issues/detail?id=3324
I was writing a filter/replacement system for incoming strings on my
mathematics website when I ran into this error:
s = sympy.sympify("3*factorial(x)")
str(s)
'3*x!'
sympy.sympify(str(s))
Traceback (most recent call last):
File "<pyshell#49>", line 1, in <module>
sympy.sympify(str(s))
File "C:\Python27\lib\site-packages\sympy\core\sympify.py", line 157, in
sympify
raise SympifyError('could not parse %r' % a)
SympifyError: SympifyError: "could not parse u'3*x!'"
Shouldn't sympy be able to accept this if it generates this?
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.