Permalink
Browse files

Remove explicit comparison operators from Diagram.

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...
1 parent 0a2e132 commit f8f429ad7ecde061852f106adfccf2262cfe5d43 @scolobb committed Jun 13, 2012
Showing with 0 additions and 10 deletions.
  1. +0 −10 sympy/categories/baseclasses.py
@@ -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.