[pypy-svn] r9155 - pypy/branch/dist-interpapp/pypy/interpreter

hpk at codespeak.net hpk at codespeak.net
Sat Feb 12 12:37:04 CET 2005


Author: hpk
Date: Sat Feb 12 12:37:04 2005
New Revision: 9155

Modified:
   pypy/branch/dist-interpapp/pypy/interpreter/baseobjspace.py
Log:
fix docstring for appexec() and cosmetic changes. 



Modified: pypy/branch/dist-interpapp/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/dist-interpapp/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/branch/dist-interpapp/pypy/interpreter/baseobjspace.py	Sat Feb 12 12:37:04 2005
@@ -280,12 +280,14 @@
 
     def appexec(self, posargs_w, source): 
         """ return value from executing given source at applevel with 
-            given name=wrapped value parameters as its starting scope.  
-            Note: EXPERIMENTAL. 
+            the given list of wrapped arguments. The arguments are
+            directly set as the fastscope of the underlyingly executing 
+            frame. No Argument parsing is performed at this point. 
+            Consider using gateway.appdef() if you need default 
+            arguments. 
         """ 
-        space = self
-        pypyco = space.loadfromcache(source, buildpypycode, self._codecache)
-        frame = pypyco.create_frame(space, self.w_apphelper_globals) 
+        pypyco = self.loadfromcache(source, buildpypycode, self._codecache)
+        frame = pypyco.create_frame(self, self.w_apphelper_globals) 
         frame.setfastscope(posargs_w)
         return frame.run() 
 



More information about the Pypy-commit mailing list