[pypy-commit] pypy default: hash_w is a bit prettier.
alex_gaynor
noreply at buildbot.pypy.org
Fri Jul 29 19:51:35 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r46090:3431a63b8581
Date: 2011-07-28 17:48 -0700
http://bitbucket.org/pypy/pypy/changeset/3431a63b8581/
Log: hash_w is a bit prettier.
diff --git a/pypy/objspace/std/tupleobject.py b/pypy/objspace/std/tupleobject.py
--- a/pypy/objspace/std/tupleobject.py
+++ b/pypy/objspace/std/tupleobject.py
@@ -154,7 +154,7 @@
x = 0x345678
z = len(wrappeditems)
for w_item in wrappeditems:
- y = space.int_w(space.hash(w_item))
+ y = space.hash_w(w_item)
x = (x ^ y) * mult
z -= 1
mult += 82520 + z + z
More information about the pypy-commit
mailing list