On Tue, Jun 7, 2011 at 5:18 PM, Simon King <simon.k...@uni-jena.de> wrote:
> Hi Gonzalo,
>
> On 7 Jun., 21:25, Gonzalo Tornaria <torna...@math.utexas.edu> 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 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

Reply via email to