From 2ee2abf22f8bf06995c2ce0fb70f365cba8055d8 Mon Sep 17 00:00:00 2001 From: Julian Rueth Date: Wed, 19 Jul 2017 23:36:33 +0000 Subject: [PATCH] Do not override __richcmp__ in Ring morphisms --- src/sage/rings/morphism.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sage/rings/morphism.pyx b/src/sage/rings/morphism.pyx index 978fe442e81..c5e8be448f5 100644 --- a/src/sage/rings/morphism.pyx +++ b/src/sage/rings/morphism.pyx @@ -499,7 +499,7 @@ cdef class RingMap_lift(RingMap): _slots['S'] = self.S return Morphism._extra_slots(self, _slots) - def __richcmp__(self, other, int op): + def _richcmp_(self, other, int op): """ Compare a ring lifting maps ``self`` to ``other``. @@ -940,7 +940,7 @@ cdef class RingHomomorphism_coercion(RingHomomorphism): """ return "Ring Coercion" - def __richcmp__(self, other, int op): + def _richcmp_(self, other, int op): """ Compare a ring coercion morphism ``self`` to ``other``. @@ -1633,7 +1633,7 @@ cdef class RingHomomorphism_cover(RingHomomorphism): """ return self.codomain().defining_ideal() - def __richcmp__(self, other, int op): + def _richcmp_(self, other, int op): """ Compare ``self`` to ``other``. @@ -1830,7 +1830,7 @@ cdef class RingHomomorphism_from_quotient(RingHomomorphism): """ return self.phi - def __richcmp__(self, other, op): + def _richcmp_(self, other, op): """ Compare ``self`` to ``other``.