Hi, I don't have the answer, but a related discussion is in this thread <https://groups.google.com/forum/#!topic/sage-devel/tZW9T-AixBQ>.
I am often facing this problem, typically when the parent is a homset and one would like to implement a specific Element class to deal with the identity map. Indeed, many methods require a specific implementation for the identity map (e.g. the method __call__(x) should simply returns x). At the moment, the workaround I am using is to have the boolean attribute _is_identity in the Element class and to make the methods have a different treatment depending on the value of _is_identity. From an object-oriented pov, it would be desirable to have instead the identity map be an instance of a devoted subclass. But then, this subclass would be not the element class of the parent... Eric -- 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 http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.