[pypy-svn] r69321 - in pypy/trunk/pypy/rlib: . test

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Nov 16 13:52:23 CET 2009


Author: cfbolz
Date: Mon Nov 16 13:52:23 2009
New Revision: 69321

Modified:
   pypy/trunk/pypy/rlib/jit.py
   pypy/trunk/pypy/rlib/test/test_jit.py
Log:
be more careful about names


Modified: pypy/trunk/pypy/rlib/jit.py
==============================================================================
--- pypy/trunk/pypy/rlib/jit.py	(original)
+++ pypy/trunk/pypy/rlib/jit.py	Mon Nov 16 13:52:23 2009
@@ -23,6 +23,7 @@
     import inspect
     purefunction(func)
     args, varargs, varkw, defaults = inspect.getargspec(func)
+    args = ["v%s" % (i, ) for i in range(len(args))]
     assert varargs is None and varkw is None
     assert not defaults
     argstring = ", ".join(args)

Modified: pypy/trunk/pypy/rlib/test/test_jit.py
==============================================================================
--- pypy/trunk/pypy/rlib/test/test_jit.py	(original)
+++ pypy/trunk/pypy/rlib/test/test_jit.py	Mon Nov 16 13:52:23 2009
@@ -25,8 +25,8 @@
 
     def test_purefunction_promote(self):
         @purefunction_promote
-        def g(x):
-            return x + 1
+        def g(func):
+            return func + 1
         def f(x):
             return g(x * 2)
         res = self.interpret(f, [2])



More information about the Pypy-commit mailing list