> Yes, have a look at sage/groups/group.pyx. It has a FiniteGroup > class, where I think you should put your main method (that's what > Florent said as well, I think).
Yep ! This will probably needs some cleanup when we will merge categories with the other generic stuff but I think this is the right place in the mean time. > For group elements, one possibility is to put the wrapper method in > the class MultiplicativeGroupElement in the file > sage/structure/element.pyx. You would probably want to do something > like > > def conjugacy_class(self): > G = self.parent() > try: > return G.conjugacy_class(self) > except AttributeError: > raise NotImplementedError, "Computation of conjugacy classes not > implemented for %s"%self > > > because some groups (e.g. infinite ones) won't have the method > conjugacy_class(). > If anybody thinks that element.pyx should not get cluttered with this > kind of thing, please say something! something :-) Same remark as above... Florent -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org