strange behavour of sum()

0 views
Skip to first unread message

John Cremona

unread,
May 13, 2009, 11:53:05 AM5/13/09
to SAGE devel
Is there any reason why this line:

print sum([1,2,3],10)

in a .pyx file should not compile? I get the error "Call with wrong
number of arguments (expected 3, got 2)" with an arrow pointing to the
work "sum".

This is driving me mad -- a very similar line in another .pyx file was fine!

John

Robert Bradshaw

unread,
May 13, 2009, 2:12:46 PM5/13/09
to sage-...@googlegroups.com

No idea, did you re-define sum somewhere earlier?

- Robert


John Cremona

unread,
May 13, 2009, 4:03:50 PM5/13/09
to sage-...@googlegroups.com
2009/5/13 Robert Bradshaw <robe...@math.washington.edu>:
No. I'll try to post something reproducible tomorrow.

John

>
> - Robert
>
>
>
> >
>
Reply all
Reply to author
Forward
0 new messages