Comment #3 on issue 2663 by [email protected]: sympify with embedded strings does not work since v0.7.0
http://code.google.com/p/sympy/issues/detail?id=2663

It will work if you enter this without assigning the keyword to the string:

sympify(u'Limit(sin(x), x, 0, "-")')  # note that 'dir=' is left out
Limit(sin(x), x, 0, dir='-')

It also doesn't work with the following:

S(3).n(n=3)
3.00
S('S(3).n(n=3)')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy\core\sympify.py", line 162, in sympify
    raise SympifyError('could not parse %r' % a)
sympy.core.sympify.SympifyError: SympifyError: "could not parse u'S(3).n(n=3)'"
S('S(3).n()')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy\core\sympify.py", line 160, in sympify
    expr = parse_expr(a, locals or {}, rational, convert_xor)
  File "sympy\parsing\sympy_parser.py", line 151, in parse_expr
expr = eval(code, global_dict, local_dict) # take local objects in preferenc
e
  File "<string>", line 1, in <module>
AttributeError: 'Integer' object has no attribute 'Symbol'



--
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.

Reply via email to