Commits

Michael Hudson-Doyle committed fa9be57

add True/False/None to builtins

  • Participants
  • Parent commits 9eed7ca

Comments (0)

Files changed (1)

pypy/objspace/std/objspace.py

                 w_c = W_CPythonObject(c)
                 setattr(self, 'w_' + c.__name__, w_c)
                 self.setitem(self.w_builtins, self.wrap(c.__name__), w_c)
+        self.setitem(self.w_builtins, self.wrap("False"), self.w_False)
+        self.setitem(self.w_builtins, self.wrap("True"), self.w_True)
+        self.setitem(self.w_builtins, self.wrap("None"), self.w_None)
         # add a dummy __import__  XXX fixme
         w_import = self.wrap(__import__)
         self.setitem(self.w_builtins, self.wrap("__import__"), w_import)