Hi Nicolas,

On Sat, 17 Apr 2010 16:27:36 +0200, "Nicolas M. Thiery" 
<nicolas.thi...@u-psud.fr> wrote:
> Ok. So e is indeed not in Algebras.element_class.
> 
> The thing is that this inheritance AlgebraElement ->
> Algebras.element_class is not set up statically; instead, for P a
> parent,
> 
>       P.element_class
> 
> is built dynamically according to the categories of P, and the class
> that is specified in P.Element. So probably all you have to do is
> something along the following lines:
> 
>     class MyParent(Parent):
> 
>       ...
> 
>       Element = SiegelModularForm_class
> 
> and then to make sure that elements are created using P.element_class
> rather than SiegelModularForm_class.

Thanks a lot for this.  I'll get it fixed.

> Some refs:
> 
>     sage: Category?
>     sage: sage.structure.dynamic_class?
>     sage: S = Semigroups().example()
>     sage: S??

And thanks for these references.  I was looking for information around
these areas but not exactly at this.


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
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