From 7ce34c2b34d7122f6972eaf900ba988c19a0bb98 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 13 Aug 2012 19:44:54 -0400 Subject: - hashable --- lib/sqlalchemy/sql/operators.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/sqlalchemy/sql/operators.py') diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index f851a5b00..560f723f2 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -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) -- cgit v1.2.1