]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- hashable
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Aug 2012 23:44:54 +0000 (19:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Aug 2012 23:44:54 +0000 (19:44 -0400)
lib/sqlalchemy/sql/operators.py

index f851a5b0038cfb6c4aa2c7ecf23d89ad4cad13c0..560f723f266cf103dab929129a8d9830755d25c2 100644 (file)
@@ -180,6 +180,9 @@ class custom_op(object):
         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)