On Sunday, December 4, 2016 at 1:59:00 PM UTC-6, Frédéric Chapoton wrote:
>
> There is currently an effort being made (by me and a few referees) to get 
> rid of cmp() in all pyx files. And the Element/Parent is one of the hardest 
> cases remaining. Getting rid of all calls to cmp( ) is necessary for 
> compatibility with python3. The intermediate objective is to be able to 
> compile all cython files with py3. So at some point I am going to try to 
> handle the very same problem your are asking about.
>
> richcmp, when not knowing what to do, should most probably return 
> NotImplemented
>
> We need to be very careful about defining "not knowing". I (stongly) 
believe when the objects/types are incomparable (say the rings ZZ and QQ), 
then == should return False and != should return True. Subsequently, when 
there is no coercion between the parents, they should not raise an error.

Best,
Travis

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