__cmp__ is gone in Python 3 see [1]. The way to implement comparisons
wil be through the various __lt__, __eq__, etc. There is already a
ticket opened for dealing with that in #16537. It would be better to
think about a solution that takes this into account. I do not know the
Cython way.

There is another very good thing in Python3: you are "allowed" to
raise a TypeError when the object are incomparable.

[1] https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons

Vincent

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