On Sat, 17 Apr 2010 15:42:30 +0200, "Nicolas M. Thiery" 
<nicolas.thi...@u-psud.fr> wrote:
> Strange. Just to make 100% sure: can you give me the result of:
> 
>     sage: e.__class__.mro()
>     sage: e.parent().category().element_class.mro()

Sure:

sage: e.__class__.mro()
[<class 'sage.modular.siegel.siegel_modular_form.SiegelModularForm_class'>,
 <type 'sage.structure.element.AlgebraElement'>, 
 <type 'sage.structure.element.RingElement'>, 
 <type 'sage.structure.element.ModuleElement'>, 
 <type 'sage.structure.element.Element'>, 
 <type 'sage.structure.sage_object.SageObject'>, 
 <type 'object'>] 

sage: e.parent().category().element_class.mro()
[<class 'sage.categories.algebras.Algebras.element_class'>, 
 <class 'sage.categories.rings.Rings.element_class'>, 
 <class 'sage.categories.rngs.Rngs.element_class'>, 
 <class 'sage.categories.modules.Modules.element_class'>, 
 <class 'sage.categories.bimodules.Bimodules.element_class'>, 
 <class 'sage.categories.left_modules.LeftModules.element_class'>, 
 <class 'sage.categories.right_modules.RightModules.element_class'>, 
 <class 
'sage.categories.commutative_additive_groups.CommutativeAdditiveGroups.element_class'>,
 <class 
'sage.categories.commutative_additive_monoids.CommutativeAdditiveMonoids.element_class'>,
 <class 
'sage.categories.commutative_additive_semigroups.CommutativeAdditiveSemigroups.element_class'>,
 <class 'sage.categories.monoids.Monoids.element_class'>, 
 <class 'sage.categories.semigroups.Semigroups.element_class'>, 
 <class 'sage.categories.sets_cat.Sets.element_class'>, 
 <class 'sage.categories.objects.Objects.element_class'>, 
 <type 'object'>]


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