diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-13 19:44:54 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-13 19:44:54 -0400 |
commit | 7ce34c2b34d7122f6972eaf900ba988c19a0bb98 (patch) | |
tree | 4601b67ad46a9d8fce457b41193b129eacec006d /lib/sqlalchemy/sql/operators.py | |
parent | d212f7e554426dfc7892288a7221e6d514df3395 (diff) | |
download | sqlalchemy-7ce34c2b34d7122f6972eaf900ba988c19a0bb98.tar.gz |
- hashable
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |