(just to say that it would be cool to add this information to the doc
if you figure out the answer to this question)

Nathann

On 4 February 2015 at 14:40, Eric Gourgoulhon <egourgoul...@gmail.com> wrote:
> Hi,
>
> I don't have the answer, but a related discussion is in this thread.
>
> 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.

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

Reply via email to