[pypy-svn] rev 604 - pypy/trunk/src/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Tue May 27 18:28:36 CEST 2003
Author: arigo
Date: Tue May 27 18:28:36 2003
New Revision: 604
Modified:
pypy/trunk/src/pypy/objspace/std/objspace.py
Log:
hmmm...
Modified: pypy/trunk/src/pypy/objspace/std/objspace.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/objspace.py (original)
+++ pypy/trunk/src/pypy/objspace/std/objspace.py Tue May 27 18:28:36 2003
@@ -30,9 +30,9 @@
from noneobject import W_NoneObject
from boolobject import W_BoolObject
from cpythonobject import W_CPythonObject
- self.w_None = W_NoneObject()
- self.w_False = W_BoolObject(False)
- self.w_True = W_BoolObject(True)
+ self.w_None = W_NoneObject(self)
+ self.w_False = W_BoolObject(self, False)
+ self.w_True = W_BoolObject(self, True)
# hack in the exception classes
import __builtin__, types
newstuff = {"False": self.w_False,
@@ -41,7 +41,7 @@
}
for n, c in __builtin__.__dict__.iteritems():
if isinstance(c, types.ClassType) and issubclass(c, Exception):
- w_c = W_CPythonObject(c)
+ w_c = W_CPythonObject(self, c)
setattr(self, 'w_' + c.__name__, w_c)
newstuff[c.__name__] = w_c
self.make_builtins()
@@ -67,7 +67,7 @@
return stringobject.W_StringObject(self, x)
#if isinstance(x, float):
# import floatobject
- # return floatobject.W_FloatObject(x)
+ # return floatobject.W_FloatObject(self, x)
if isinstance(x, tuple):
wrappeditems = [self.wrap(item) for item in x]
import tupleobject
More information about the Pypy-commit
mailing list