[pypy-commit] pypy default: might as well shortcut through finditem_str

pjenvey noreply at buildbot.pypy.org
Thu Apr 24 01:42:52 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: 
Changeset: r70901:5c0a54b343c9
Date: 2014-04-23 16:10 -0700
http://bitbucket.org/pypy/pypy/changeset/5c0a54b343c9/

Log:	might as well shortcut through finditem_str

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -881,8 +881,8 @@
 
     def LOAD_NAME(self, nameindex, next_instr):
         if self.w_locals is not self.w_globals:
-            w_varname = self.getname_w(nameindex)
-            w_value = self.space.finditem(self.w_locals, w_varname)
+            varname = self.getname_u(nameindex)
+            w_value = self.space.finditem_str(self.w_locals, varname)
             if w_value is not None:
                 self.pushvalue(w_value)
                 return


More information about the pypy-commit mailing list