Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Parsing

New issue 3441 by asmeu...@gmail.com: _kern leftover from sympify of a list
http://code.google.com/p/sympy/issues/detail?id=3441

This was sent to me by email:

The sympify function uses inner "_kern" symbol in order to do some
things smartly. At the end, all occurences of the symbol should be
replaced by "1". But the replacement uses "in" statemtent, that is not
valid when the result of sympify is a structure (e.g. a list):


from sympy import sympify

for xpr in ('[-(2/4)]', '[-2/4]', '-(2/4)', '-2/4'): print(sympify(xpr))

# the response is
'''
[-_kern/2]
[-1/2]
-1/2
-1/2
'''

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to