Author: Antonio Cuni <[email protected]>
Branch: identity-dict-strategy
Changeset: r45742:2f37e2d466b7
Date: 2011-07-19 17:15 +0200
http://bitbucket.org/pypy/pypy/changeset/2f37e2d466b7/
Log: add an XXX
diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -225,6 +225,8 @@
if not w_self.overrides_hash_eq_or_cmp:
return True # fast path
#
+ # XXX: if the class *does* overrides, we always hit the slow path. Do
+ # we care?
default_hash = object_hash(w_self.space)
w_self.overrides_hash_eq_or_cmp = (w_self.lookup('__eq__') or
w_self.lookup('__cmp__') or
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit