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

Commit

Permalink
trac 19488 using richcmp via coercion
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Aug 19, 2016
1 parent 1113e99 commit 40ede9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/combinat/crystals/affine.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def phi(self, i):
else:
return self.lift().phi(i)

def __richcmp__(self, other, op):
def _richcmp_(self, other, op):
"""
Elements of this crystal are compared using the comparison in
the underlying classical crystal.
Expand Down Expand Up @@ -515,8 +515,6 @@ def __richcmp__(self, other, op):
sage: b>=c
False
"""
if parent(self) is not parent(other):
return NotImplemented
return richcmp(self.value, other.value, op)


Expand Down

0 comments on commit 40ede9e

Please sign in to comment.