On 2012-11-18, Nathann Cohen <nathann.co...@gmail.com> wrote: > --90e6ba6e8e1cedba1504cec69dea > Content-Type: text/plain; charset=ISO-8859-1 > > Hellooooooo guys. > > Here's how you can get an infinite loop in two lines with Permutation. > > sage: p = > Permutation([(1,10,11,13,9,3,16,0,22),(8,2,15,18,24,26,20,21,4),(5,6,17,12,25,7,23,14,19)]) > sage: p.to_cycles() > > Of course it has to be because my permutation goes from 0 to n-1 while the > code expects 1-n. > > It is all very nice. Now, if the code does not work, we should just refuse > to build the corresponding permutations, and say it only works with > integers. Otherwise it has to be fixed quicjky or all this code is totally > useless. be my guest, open a ticket, propose an easy patch to combinat/permutation.py, cc to me :)
-- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.