Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r59188:688d3e0da26c Date: 2012-12-01 13:25 -0800 http://bitbucket.org/pypy/pypy/changeset/688d3e0da26c/
Log: this whole file is evil, but apply is especially evil diff --git a/pypy/objspace/std/fake.py b/pypy/objspace/std/fake.py --- a/pypy/objspace/std/fake.py +++ b/pypy/objspace/std/fake.py @@ -178,17 +178,19 @@ def getfastscope(self): raise OperationError(self.space.w_TypeError, self.space.wrap("cannot get fastscope of a CPythonFakeFrame")) + def run(self): code = self.fakecode assert isinstance(code, CPythonFakeCode) fn = code.cpy_callable try: - result = apply(fn, self.unwrappedargs, self.unwrappedkwds) + result = fn(*self.unwrappedargs, **self.unwrappedkwds) except: wrap_exception(self.space) raise return self.space.wrap(result) + class EvenMoreObscureWrapping(baseobjspace.Wrappable): def __init__(self, val): self.val = val _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit