Hi Florent, On Sat, 17 Apr 2010 17:49:23 +0200, Florent Hivert <florent.hiv...@univ-rouen.fr> wrote: > Hi Alex, > > > * we have a class Parent_class which inherits from Algebra > > * we have a class Element_class which inherits from AlgebraElement > > Just a stupid question which pops in my mind: how did you tells the class > Parent_class that its element are of class Element_class how did you construct > them ? I remember having something similar once but unfortunately I don't > remember the precise mistake. Did you have in Parent_class: > > Element = Element_class
It's definitely not a stupid question. In fact, I think it's precisely what's happening here, and what Nicolas also suggested to me. I'll try this out later today. Thanks a lot, 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