Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Do not override __richcmp__ in Ring morphisms
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum committed Jul 19, 2017
1 parent b63a0d2 commit 2ee2abf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/rings/morphism.pyx
Expand Up @@ -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``.
Expand Down Expand Up @@ -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``.
Expand Down Expand Up @@ -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``.
Expand Down Expand Up @@ -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``.
Expand Down

0 comments on commit 2ee2abf

Please sign in to comment.