[pypy-svn] r56918 - pypy/branch/garden-call-code/pypy/objspace/std
pedronis at codespeak.net
pedronis at codespeak.net
Sat Aug 2 13:08:02 CEST 2008
Author: pedronis
Date: Sat Aug 2 13:08:00 2008
New Revision: 56918
Modified:
pypy/branch/garden-call-code/pypy/objspace/std/proxyobject.py
Log:
working toward reducing Arguments interface: kill popfirst usage here
Modified: pypy/branch/garden-call-code/pypy/objspace/std/proxyobject.py
==============================================================================
--- pypy/branch/garden-call-code/pypy/objspace/std/proxyobject.py (original)
+++ pypy/branch/garden-call-code/pypy/objspace/std/proxyobject.py Sat Aug 2 13:08:00 2008
@@ -5,7 +5,7 @@
from pypy.objspace.std.objspace import *
from pypy.objspace.std.proxy_helpers import register_type
from pypy.interpreter.error import OperationError
-from pypy.interpreter import baseobjspace
+from pypy.interpreter import baseobjspace, argument
#class W_Transparent(W_Object):
# def __init__(self, w_controller):
@@ -22,8 +22,10 @@
self.space = space
def descr_call_mismatch(self, space, name, reqcls, args):
- _, args = args.popfirst()
- args = args.prepend(space.wrap(name))
+ args_w, kwds_w = args.unpack()
+ args_w = args_w[:]
+ args_w[0] = space.wrap(name)
+ args = argument.Arguments(space, args_w, kwds_w)
return space.call_args(self.w_controller, args)
def getclass(self, space):
More information about the Pypy-commit
mailing list