[pypy-svn] r5335 - pypy/trunk/src/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Sat Jun 26 00:51:13 CEST 2004
Author: arigo
Date: Sat Jun 26 00:51:10 2004
New Revision: 5335
Modified:
pypy/trunk/src/pypy/interpreter/gateway.py
Log:
bug fix
Modified: pypy/trunk/src/pypy/interpreter/gateway.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/gateway.py (original)
+++ pypy/trunk/src/pypy/interpreter/gateway.py Sat Jun 26 00:51:10 2004
@@ -105,8 +105,12 @@
if self.code.ismethod:
argarray[0] = self.space.unwrap(argarray[0])
if self.code.spacearg:
- argarray.insert(0, self.space)
- return self.code.func(*argarray)
+ w_result = self.code.func(self.space, *argarray)
+ else:
+ w_result = self.code.func(*argarray)
+ if w_result is None:
+ w_result = self.space.w_None
+ return w_result
class Gateway(Wrappable):
More information about the Pypy-commit
mailing list