Issue 1189: Sum uses __str__ when doing direct finite sums
http://code.google.com/p/sympy/issues/detail?id=1189

New issue report by ellisonbg.net:
class MyBasic(Basic):

     def __new__(cls, k):
         obj = Basic.__new__(cls, sympify(k), commutative=False)
         return obj

     def _eval_subs(self, old, new):
         r = self.__class__(self.args[0].subs(old, new))
         return r

     def __str__(self):
         return "hi there" % self.args[0]

In [33]: s = Sum(MyBasic(n)*MyBasic(n)*2,(n,0,4))

In [34]: s.doit()
Out[34]:
           2             2             2             2             2
2⋅hi there  + 2⋅hi there  + 2⋅hi there  + 2⋅hi there  + 2⋅hi there


Issue attributes:
        Status: New
        Owner: ----
        Labels: Type-Defect Priority-Medium

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