On Tue, Feb 26, 2013 at 10:59:26AM +0000, Simon King wrote:
> Namely, if I am not mistaken, comparison on elements should not be
> implemented by providing __eq__, __ne__ and __cmp__, explicitly invoking
> the coercion model. Instead, for a *Python* class, one should just define
> __cmp__ as always, where one can assume that both inputs have identical
> parents (so, no explicit invocation of the coercion model is needed). 

Which is always annoying when you don't have a natural total, or only
a partial one between your elements. But that's another can of worm.

> Would you agree to leave it is a "todo" to follow the comments on
> __cmp__ and __richcmp__ from sage.structure.element, and for now
> just fix the tests?

Sounds good to me.

Cheers,
                                Nicolas
--
Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to