On 2014-09-10, Nathann Cohen <nathann.co...@gmail.com> wrote: >> How about going all the way and permit proper GAP-like syntax for >> permutations? >> That is, the preparser should replace >> (1,2,3)(4,5)(7,8) with Permutation(['(1,2,3)','(4,5)','(7,8)']) > > Hmmm... And what about circular permutations ?
OK, I stand corrected. It should be simpler: (1,2,3)(4,5)(7,8) should be pre-parsed to ((1,2,3),(4,5),(7,8)) and we can define '*', '^-1', etc simply on the tuples of tuples, can't we? > Should (1,2,3) return a permutation instead of a tuple ? :-PPPP then there will be no difference between a tuple and a cyclic permutation... -- 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.