#16725: Implement a general monoid_generators for groups
-------------------------------------+-------------------------------------
       Reporter:  tscrim             |        Owner:  tscrim
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.3
      Component:  group theory       |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Travis Scrimshaw   |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/groups/monoid_generators-16725|  
c64a5fb9487a0d54da40acd2003b0a2930f06207
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by tscrim):

 Replying to [comment:6 ncohen]:
 > But don't you enter this infinite loop as soon as a group has no
 `.gens()` ?
 >
 > {{{
 > sage: G=groups.presentation.Cyclic(10)
 > sage: G=G.cartesian_product(G)
 > sage: G.gens()
 > AttributeError: 'CartesianProduct_with_category' object has no attribute
 'gens'
 > sage: G.group_generators()
 > <loop>
 > }}}

 Right (unless the user implements a custom `group_generators()`, which is
 the current recommendation). (Side note, this exact error shouldn't happen
 with #16718.) The other option would be to not have `group_generators`
 call `monoid_generators`. I think the infinite loop is the lesser of two
 evils (at least until we have the framework for semi-abstract methods like
 this).

--
Ticket URL: <http://trac.sagemath.org/ticket/16725#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to