Opened 5 years ago
Closed 5 years ago
#20194 closed defect (fixed)
expression conversion bug with Sympy functions
Reported by: | rws | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | symbolics | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
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 https://github.com/sympy/sympy/issues/10795
Change History (5)
comment:1 Changed 5 years ago by
- Description modified (diff)
comment:2 Changed 5 years ago by
- Description modified (diff)
- Report Upstream changed from N/A to Reported upstream. No feedback yet.
comment:3 Changed 5 years ago by
- Milestone changed from sage-7.2 to sage-duplicate/invalid/wontfix
- Report Upstream changed from Reported upstream. No feedback yet. to N/A
- Status changed from new to needs_review
comment:4 Changed 5 years ago by
- Status changed from needs_review to positive_review
comment:5 Changed 5 years ago by
- Resolution set to fixed
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
This was resolved in #20185.