I understand that you would expect the same result when calling a function on a list and on a tuple. I'm still not sure it needs to be changed: what you call a bug is obviously a feature for many people.
And nevertheless, what I don't see is why you would expect the same behaviour when calling () or [ ] on a object. Yes, maybe, it wasn't the best choice. But it's not absurd: it just considers the permutation to be a word and adds the () feature to use it as a function. Changing this would just mess tons of people work, mine included. But anyway we're going very far from the original subject. I'm not sure anyone has time now to rethink permutations entirely in a way that would be more consistent and without messing people's code and work, i.e. without erasing everythink as you suggest and change behaviour everywhere on a object that is used by many many people. Best, Viviane Le 8 sept. 2014 08:07, "Nathann Cohen" <nathann.co...@gmail.com> a écrit : > > When Sage does something different than what I expect, I look at the doc > > instead of wondering why it's different > > When a list becomes a tuple and all of a sudden a 10 lines functions (that > calls other functions) returns wrong answers I swear that you don't. Come > on Travis open your eyes, this thing is dead misleading. > > > It's not a bug because it's not doing something wrong. It's just doing > > something different than you expect. Moreover I would not necessarily > expect > > those two to behave in the same way because I'm giving different input; > > especially for p(1) and p[1]. > > Travis, you can't even expect an user to be able to get the doc for () and > []. And it's not even the problem. This [] notation is about considering a > 1-based permutation as a 0-based arrays that returns 1-based indices. > > Can you really not see that it is a bad idea ? > > Nathann > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.