Hi Arpit, On 2016-06-19, Arpit Merchant <arpi...@gmail.com> wrote: > What does MyElement represent in your example? What is its connection to > MyParent? > And since Element is itself a class, won't writing Element = MyElement give > a syntax error?
I think that's all answered in the thematic tutorial "How to implement new algebraic structure in Sage", see http://doc.sagemath.org/html/en/thematic_tutorials/coercion_and_categories.html#coercion-and-categories Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.