Skip to content

Commit

Permalink
Remove explicit comparison operators from Diagram.
Browse files Browse the repository at this point in the history
My initial intention was to attempt to speed-up the comparison by not
actually comparing the objects of two diagrams, because objects fully
depend on the premises.
  • Loading branch information
scolobb committed Jun 15, 2012
1 parent 0a2e132 commit f8f429a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sympy/categories/baseclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,13 +919,3 @@ def hom(self, A, B):
conclusions |= FiniteSet(morphism)

return (premises, conclusions)

def __eq__(self, other):
if not isinstance(other, Diagram):
return False

return (self.premises == other.premises) and \
(self.conclusions == other.conclusions)

def __ne__(self, other):
return not (self == other)

0 comments on commit f8f429a

Please sign in to comment.