Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expression conversion bug with Sympy functions #20194

Closed
rwst opened this issue Mar 11, 2016 · 5 comments
Closed

expression conversion bug with Sympy functions #20194

rwst opened this issue Mar 11, 2016 · 5 comments

Comments

@rwst
Copy link

rwst commented Mar 11, 2016

With the Sympy-1.0 upgrade (#20185)

sage: import sympy
sage: u = sympy.Function('u'); n = sympy.Symbol('n', integer=True)
sage: sympy.sympify(3*u(n), evaluate=False)
/home/ralf/sage/local/lib/python2.7/site-packages/sympy-1.0-py2.7.egg/sympy/parsing/sympy_parser.pyc in flatten(self, args, func)
    922         result = []
    923         for arg in args:
--> 924             if isinstance(arg, ast.Call) and arg.func.id == func:
    925                 result.extend(self.flatten(arg.args, func))
    926             else:

AttributeError: 'Call' object has no attribute 'id'

which disappears when 3*u(n) is changed to u(n)*3 or u(n)

Reported as sympy/sympy#10795

Component: symbolics

Issue created by migration from https://trac.sagemath.org/ticket/20194

@rwst rwst added this to the sage-7.2 milestone Mar 11, 2016
@rwst

This comment has been minimized.

@rwst

This comment has been minimized.

@rwst
Copy link
Author

rwst commented Mar 11, 2016

Upstream: Reported upstream. No feedback yet.

@rwst
Copy link
Author

rwst commented Mar 28, 2016

comment:3

This was resolved in #20185.

@rwst
Copy link
Author

rwst commented Mar 28, 2016

Changed upstream from Reported upstream. No feedback yet. to none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants