[sage-devel] Re: strange behavour of sum()

2009-05-13 Thread John Cremona
2009/5/13 Robert Bradshaw : > > On May 13, 2009, at 8:53 AM, John Cremona wrote: > >> 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

[sage-devel] Re: strange behavour of sum()

2009-05-13 Thread Robert Bradshaw
On May 13, 2009, at 8:53 AM, John Cremona wrote: > 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 ma