Commits

Mike Bayer  committed 6e0857f

- hashable

  • Participants
  • Parent commits 208a6ed

Comments (0)

Files changed (1)

File lib/sqlalchemy/sql/operators.py

         return isinstance(other, custom_op) and \
             other.opstring == self.opstring
 
+    def __hash__(self):
+        return id(self)
+
     def __call__(self, left, right, **kw):
         return left.operate(self, right, **kw)