[pypy-svn] r9967 - pypy/dist/pypy/interpreter

hpk at codespeak.net hpk at codespeak.net
Mon Mar 21 00:12:44 CET 2005


Author: hpk
Date: Mon Mar 21 00:12:44 2005
New Revision: 9967

Modified:
   pypy/dist/pypy/interpreter/baseobjspace.py
Log:
don't put e.g. NoneType into builtin 


Modified: pypy/dist/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/dist/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/dist/pypy/interpreter/baseobjspace.py	Mon Mar 21 00:12:44 2005
@@ -73,7 +73,7 @@
 
         # initialize with "bootstrap types" from objspace  (e.g. w_None)
         for name, value in self.__dict__.items():
-            if name.startswith('w_'):
+            if name.startswith('w_') and not name.endswith('Type'): 
                 name = name[2:]
                 #print "setitem: space instance %-20s into builtins" % name
                 self.setitem(self.builtin.w_dict, self.wrap(name), value)



More information about the Pypy-commit mailing list