Updates:
        Status: Started
        Owner: mattpap
        Labels: NeedsReview

Comment #5 on issue 1376 by mattpap: sympy.sum overrides built-in sum with a different call syntax
http://code.google.com/p/sympy/issues/detail?id=1376

As I work with built-in sum() a lot when developing sympy.polys, I fixed this issue
in polys8 branch:

http://github.com/mattpap/sympy-polys/commit/2441c951c1d6e6877ea62ae9f7cb0de0611f1f72

Example:

In [1]: sum([])
Out[1]: 0

In [2]: sum([], 3)
Out[2]: 3

In [3]: sum([], start=3)
Out[3]: 3

In [4]: sum([1,2,3], 3)
Out[4]: 9

In [5]: sum([1,2,3], start=3)
Out[5]: 9

In [6]: sum(x**k, (k, 0, n))
Out[6]:
     1 + n
1 - x
──────────
  1 - x

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