Your last example makes petgect sense in terms of mathematics: the first one is a petmutation as a word and the second one is a permutation as a group element. We need BOTH and we need both to be simple. The diff between brackets and parenthesis is quite natural AND consistent with mathematic notation. And I must add that even so it is annoying for code, we do need the 1-starting permutations. All the combinatorists I know do not even think a permutation can start at 0. It makes things more complicated for us and we need to put extra care in code and documentation but we do need to print and accept entries as 1-starting perms. Not only for backward compatibility but also for real-non-coder-people compatibility.
Cheers Viviane Le 5 sept. 2014 17:00, "Nathann Cohen" <nathann.co...@gmail.com> a écrit : > > I just had a quick look at it, and the following looks downright scary: > > It is one of this code's many wonders. Also, note that : > > sage: Permutation([1,2,3]) > [1, 2, 3] > sage: Permutation((1,2,3)) > [2, 3, 1] > > I hate that code. > > 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.