Updates:
        Status: Accepted

Comment #1 on issue 1349 by mattpap:  'int' object has no attribute 'is_Add'
http://code.google.com/p/sympy/issues/detail?id=1349

Thanks for reporting this.

It fails in an interactive session because you try to pretty print it. This  
an
obvious bug in Poly.add_term, mainly lack of sympification of the input  
argument.

This works:

In [1]: f = Poly((), x,y,z)

In [2]: g = f.add_term(12, (1,2,3))

But [2] will fail when printing it. For now you have to be explicit:

In [3]: f.add_term(Integer(12), (1,2,3))
Out[3]: Poly(12*x*y**2*z**3, x, y, z)

I'm sure there are other bugs of this kind in several Poly.* functions.

--
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 sympy-issues@googlegroups.com
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to