If you are using list() to get all the elements, it seems prudent to just sort them. But it also seems like it would be useful to have an iterator that always gives the same order, for cases where you don't want to list all the elements.
Aaron Meurer On Thu, May 14, 2020 at 3:32 AM S.Y. Lee <[email protected]> wrote: > > You should sort the arguments before passing to PermutationGroup. > > On Thursday, May 14, 2020 at 5:07:10 PM UTC+9, Rafael wrote: >> >> >> If G is a permutation group, then since G.elements is a set, I cannot >> expect that list(G.elements) always lists the elements in the same >> order. Can I expect that list(G.generate()) lists the elements always in >> the same order? > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/aa59cc49-de7e-4275-890e-b418acbc55fa%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6LAy06GS%3DgyfnjSeTgSuS8a3MjUyxAvdKhjXcDSxYwnTA%40mail.gmail.com.
