diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-30 15:56:00 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-30 15:56:00 -0400 |
commit | c4c37c0201a966ecb05b5540769f48d7387495c5 (patch) | |
tree | cff0547dd0325a809d3db198731a98283fa1a479 /lib/sqlalchemy/sql/expression.py | |
parent | 965b34fa32f5266ca0fd8e40ae259e2957d50534 (diff) | |
download | sqlalchemy-c4c37c0201a966ecb05b5540769f48d7387495c5.tar.gz |
- the distinct hash code logic here is entirely obsolete as you can
do eq_() on columnelements now with a meaningful bool; jython is entirely a
non-starter right now in any case as 2.7 doesn't support common accessors like __defaults__
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
-rw-r--r-- | lib/sqlalchemy/sql/expression.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 72879f6e4..5820cb106 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -1715,17 +1715,6 @@ class ClauseElement(Visitable): d.pop('_is_clone_of', None) return d - if util.jython: - def __hash__(self): - """Return a distinct hash code. - - ClauseElements may have special equality comparisons which - makes us rely on them having unique hash codes for use in - hash-based collections. Stock __hash__ doesn't guarantee - unique values on platforms with moving GCs. - """ - return id(self) - def _annotate(self, values): """return a copy of this ClauseElement with annotations updated by the given dictionary. |