]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- the distinct hash code logic here is entirely obsolete as you can
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 30 May 2013 19:56:00 +0000 (15:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 30 May 2013 19:56:00 +0000 (15:56 -0400)
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__

.gitignore
lib/sqlalchemy/sql/expression.py

index 5fe72b527be387adc1dad8c3a6581e8cb4a84d20..69da39e02d5c87ea2450de8378bd3cafc0de504b 100644 (file)
@@ -9,6 +9,7 @@ tox.ini
 *.egg-info
 .coverage
 .*,cover
+*.class
 *.so
 sqlnet.log
 /mapping_setup.py
index 72879f6e46e182ff8cf3272fba4e827a6d1e5147..5820cb10610760cc2dce9ea8453f294489da0cde 100644 (file)
@@ -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.