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

Commit

Permalink
trac 26221: enable hash for FreeMonoid_class_with_category
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Sep 8, 2018
1 parent fc36a57 commit d6c3b5f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/sage/monoids/free_monoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,29 +205,6 @@ def __init__(self, n, names=None):
#self._assign_names(names)
Monoid_class.__init__(self,names)

def __eq__(self, other):
"""
Test for equality.
"""
if self is other:
return True
if not isinstance(other, FreeMonoid_class):
return False
if self.__ngens != other.__ngens:
return False
try:
if self.variable_names() != other.variable_names():
return False
except ValueError:
pass
return True

def __ne__(self, other):
"""
Test for unequality.
"""
return not (self == other)

def _repr_(self):
return "Free monoid on %s generators %s"%(self.__ngens,self.gens())

Expand Down

0 comments on commit d6c3b5f

Please sign in to comment.