Hi, Not because of Composition but because of sum
sage: import __builtin__ sage: __builtin__.sum(Composition([1,2,3])) 6 Vincent 2014-05-19 16:26 UTC+02:00, Nathann Cohen <nathann.co...@gmail.com>: > Hello everybody ! > > Today I come with this : > > sage: sum(Composition([1,2,3])) > ... > TypeError: sum() takes exactly 1 argument (0 given) > > Some code of mine which uses Composition expected to see 3+2+1=6 there, but > all I got was an exception. > > Looks like you are not allowed to change the meaning of .sum(), which is > what Composition does. > > Nathann > > -- > You received this message because you are subscribed to the Google Groups > "sage-combinat-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-combinat-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-combinat-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-combinat-devel. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-combinat-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-combinat-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-combinat-devel. For more options, visit https://groups.google.com/d/optout.