[pypy-commit] pypy dict-strategies: fix hint that was broken in the strategy refactoring

cfbolz noreply at buildbot.pypy.org
Wed Jun 22 15:41:28 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: dict-strategies
Changeset: r45057:21484a3e3772
Date: 2011-06-22 15:46 +0200
http://bitbucket.org/pypy/pypy/changeset/21484a3e3772/

Log:	fix hint that was broken in the strategy refactoring

diff --git a/pypy/objspace/std/celldict.py b/pypy/objspace/std/celldict.py
--- a/pypy/objspace/std/celldict.py
+++ b/pypy/objspace/std/celldict.py
@@ -36,7 +36,7 @@
         if makenew or jit.we_are_jitted():
             # when we are jitting, we always go through the pure function
             # below, to ensure that we have no residual dict lookup
-            self = jit.hint(self, promote=True)
+            w_dict = jit.hint(w_dict, promote=True)
             return self._getcell_makenew(w_dict, key)
         return self.unerase(w_dict.dstorage).get(key, None)
 


More information about the pypy-commit mailing list