[pypy-svn] rev 533 - in pypy/trunk/src/pypy: interpreter module

mwh at codespeak.net mwh at codespeak.net
Tue May 27 13:22:55 CEST 2003


Author: mwh
Date: Tue May 27 13:22:55 2003
New Revision: 533

Modified:
   pypy/trunk/src/pypy/interpreter/baseobjspace.py
   pypy/trunk/src/pypy/module/builtin.py
Log:
That name's not going to survive for very long!


Modified: pypy/trunk/src/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/trunk/src/pypy/interpreter/baseobjspace.py	Tue May 27 13:22:55 2003
@@ -34,7 +34,7 @@
         self.setattr(self.w_sys, self.wrap("modules"), self.w_modules)
 
     # XXX use a dictionary in the future
-    def get_builtin(self,w_name):
+    def get_builtin_module(self, w_name):
         name = self.unwrap(w_name)
         if name == '__builtin__':
             return self.w_builtin

Modified: pypy/trunk/src/pypy/module/builtin.py
==============================================================================
--- pypy/trunk/src/pypy/module/builtin.py	(original)
+++ pypy/trunk/src/pypy/module/builtin.py	Tue May 27 13:22:55 2003
@@ -28,7 +28,7 @@
         except executioncontext.OperationError,e:
             if not e.match(space, space.w_KeyError):
                 raise
-            w_mod = space.get_builtin(w_modulename)
+            w_mod = space.get_builtin_module(w_modulename)
             if w_mod is not None:
                 space.setitem(space.w_modules,w_modulename,w_mod)
                 return w_mod


More information about the Pypy-commit mailing list