[pypy-svn] r67435 - pypy/trunk/pypy/rpython/lltypesystem
arigo at codespeak.net
arigo at codespeak.net
Wed Sep 2 18:04:57 CEST 2009
Author: arigo
Date: Wed Sep 2 18:04:57 2009
New Revision: 67435
Modified:
pypy/trunk/pypy/rpython/lltypesystem/rdict.py
Log:
Minor simplification here.
Modified: pypy/trunk/pypy/rpython/lltypesystem/rdict.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/rdict.py (original)
+++ pypy/trunk/pypy/rpython/lltypesystem/rdict.py Wed Sep 2 18:04:57 2009
@@ -507,7 +507,6 @@
PERTURB_SHIFT = 5
def ll_dict_lookup(d, key, hash):
- DICT = lltype.typeOf(d).TO
entries = d.entries
mask = len(entries) - 1
i = hash & mask
@@ -520,7 +519,7 @@
# correct hash, maybe the key is e.g. a different pointer to
# an equal object
found = d.keyeq(checkingkey, key)
- if DICT.paranoia:
+ if d.paranoia:
if (entries != d.entries or
not entries.valid(i) or entries[i].key != checkingkey):
# the compare did major nasty stuff to the dict: start over
@@ -555,7 +554,7 @@
# correct hash, maybe the key is e.g. a different pointer to
# an equal object
found = d.keyeq(checkingkey, key)
- if DICT.paranoia:
+ if d.paranoia:
if (entries != d.entries or
not entries.valid(i) or entries[i].key != checkingkey):
# the compare did major nasty stuff to the dict:
More information about the Pypy-commit
mailing list