On Tue, Jun 7, 2011 at 5:18 PM, Simon King <[email protected]> wrote: > Hi Gonzalo, > > On 7 Jun., 21:25, Gonzalo Tornaria <[email protected]> wrote: >> What is the base class that one is supposed to use instead of ParentWithBase? > > I think it is Parent. The Parent.__init__ accepts an argument base. > > Here is a small example:
Thanks for the example. I'll try it. One caveat, though. The standard "Ring" and "Algebra" parents both inherit from the ParentWithBase. Am I allowed to mix an element class derived from AlgebraElements with a parent class derived from Parent? Also, is it my impression or this model seems to require a lot of boilerplate if I wanted to implement it fully (with categories, functors, etc)? Gonzalo -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
