Status: Valid
Owner: ----
CC: [email protected]
Labels: Type-Defect Priority-Medium

New issue 3681 by [email protected]: bottom_up runs into problem with Pow
http://code.google.com/p/sympy/issues/detail?id=3681

from sympy.strategies.traverse import *
def f(x):
...   if x.is_Symbol:
...     x += 1
...   return x
...
bottom_up(f)(x)
x + 1
bottom_up(f)(x**2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy\core\basic.py", line 452, in __repr__
    return sstr(self, order=None)
  File "sympy\printing\str.py", line 670, in sstr
    s = p.doprint(expr)
  File "sympy\printing\printer.py", line 231, in doprint
    return self._str(self._print(expr))
  File "sympy\printing\printer.py", line 255, in _print
    return getattr(self, printmethod)(expr, *args)
  File "sympy\printing\str.py", line 442, in _print_Pow
    if expr.is_commutative:
AttributeError: is_commutative



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to