On Wed, Jul 23, 2014 at 7:26 AM, Nathann Cohen <nathann.co...@gmail.com> wrote: > Hello guys ! > > If anybody asks you whether Sage supports groups, here is an answer : > > sage: > AG=cartesian_product([CyclicPermutationGroup(5),CyclicPermutationGroup(4),CyclicPermutationGroup(4)])
Is this a confusion over categories, Nathann? sage: G1 = CyclicPermutationGroup(5) sage: G2 = CyclicPermutationGroup(4) sage: D1 = G1.direct_product(G2,False) sage: D2 = D1.direct_product(G2,False) sage: D2.base_ring() Integer Ring works fine. > sage: AG.base_ring() # WTF ??? This has nothing to do here > sage: AG.construction() # same comment > sage: AG.first() # same comment > ((), (), ()) > sage: AG.last() # same comment > ((1,5,4,3,2), (1,4,3,2), (1,4,3,2)) > sage: AG.gens_dict() > ... > AttributeError: 'CartesianProduct_with_category' object has no attribute > 'gens' > sage: AG.gens_dict_recursive() > ... > AttributeError: 'NoneType' object has no attribute 'gens_dict_recursive' > sage: AG.group_generators() > ... > AttributeError: 'CartesianProduct_with_category' object has no attribute > 'gens' > sage: AG.j_classes() > ... > AttributeError: 'CartesianProduct_with_category' object has no attribute > 'gens' > sage: AG.objgen() > ... > AttributeError: 'CartesianProduct_with_category' object has no attribute > 'gen' > sage: AG.objgen() > ... > AttributeError: 'CartesianProduct_with_category' object has no attribute > 'gen' > > Thanks God we have doctests, so these things cannot happen to us. > > 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.