Comment #107 on issue 1598 by asmeurer: New polynomials manipulation module
http://code.google.com/p/sympy/issues/detail?id=1598

I can give an example:

factorint(192, visual=True)
 6  1
2 ⋅3
factorint(192, visual=True) + 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

I noticed this when I implemented this feature in factorint. I was wondering if Mateusz fixed this when I saw that
he was doing unevaluated 2*(x + y), but I guess he didn't.

Of course, fixing issue 1497 would be even better for doing this.

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

Reply via email to