Status: Accepted
Owner: asmeurer
CC: smichr
Labels: Type-Defect Priority-Medium
New issue 1864 by asmeurer: AttributeError: is_commutative with Mul(Pow(2,
2, evaluate=False), 3, evaluate=False) + 1
http://code.google.com/p/sympy/issues/detail?id=1864
Mul(Pow(2, 2, evaluate=False), 3, evaluate=False) + 1
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "./sympy/core/decorators.py", line 106, in __sympifyit_wrapper
return func(a, b)
File "./sympy/core/basic.py", line 697, in __add__
return Add(self, other)
File "./sympy/core/cache.py", line 85, in wrapper
func_cache_it_cache[k] = r = func(*args, **kw_args)
File "./sympy/core/operations.py", line 31, in __new__
c_part, nc_part, order_symbols = cls.flatten(map(_sympify, args))
File "./sympy/core/add.py", line 111, in flatten
noncommutative = noncommutative or not s.is_commutative
AttributeError: is_commutative
This is for example returned by factorint(12, visual=True) + 1.
factor() now uses evaulate=False to get around issue 1497, so this can also
show up with relation to
that.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
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.