I got that now. But at the time I thought __richcmp__ was just a fancy new 
name for the old __cmp__ in python in order to make it python 3 compatible. 

Anyways. It would be nice to say something like that in the documentation. 
(Maybe I have just missed it and it is there already.)
"
@richcmp_method simply allows to define just 
one comparison method __richcmp__ instead of six __eq__, __lt__, ... "
"
and add a reference to some working example somewhere in the sage library.
As many people will come across that file who are not programmers and do 
not speak cython.
And in future they will also not know about the __cmp__ method of python 2.7

On Tuesday, October 17, 2017 at 2:11:09 PM UTC+2, Jeroen Demeyer wrote:
>
> On 2017-10-17 12:13, Simon Brandhorst wrote: 
> > Because the documentation did not tell me it was possible: 
>
> That *what* is possible? @richcmp_method simply allows to define just 
> one comparison method __richcmp__ instead of six __eq__, __lt__, ... 
>
> However, the functionality of what that comparison method can do remains 
> the same. 
>

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

Reply via email to