Author: Maciej Fijalkowski <[email protected]>
Branch: remove-list-smm
Changeset: r62625:b24c7cb07f42
Date: 2013-03-21 16:58 -0700
http://bitbucket.org/pypy/pypy/changeset/b24c7cb07f42/

Log:    (arigo, fijal) fix the descr test

diff --git a/pypy/interpreter/gateway.py b/pypy/interpreter/gateway.py
--- a/pypy/interpreter/gateway.py
+++ b/pypy/interpreter/gateway.py
@@ -153,11 +153,9 @@
     def visit__W_Root(self, el, app_sig):
         argname = self.orig_arg()
         if argname == 'self':
-            # for W_ListObject and similar to be possible to have
-            # unwrap_spec in methods
+            assert el is not W_Root
             app_sig.append(argname)
             return
-        assert el is W_Root, "%s is not W_Root (forgotten to put .im_func in 
interp2app argument?)" % (el,)
         assert argname.startswith('w_'), (
             "argument %s of built-in function %r should "
             "start with 'w_'" % (argname, self.func))
@@ -351,7 +349,11 @@
         self.unwrap.append("space")
 
     def visit__W_Root(self, el):
-        self.unwrap.append(self.nextarg())
+        if el is not W_Root:
+            self.unwrap.append("space.interp_w(%s, %s)" % (self.use(el),
+                                                           self.nextarg()))
+        else:
+            self.unwrap.append(self.nextarg())
 
     def visit__Arguments(self, el):
         raise FastFuncNotSupported
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to