[pypy-svn] r72020 - pypy/branch/faster-compilation/pypy/objspace
fijal at codespeak.net
fijal at codespeak.net
Wed Mar 10 03:37:18 CET 2010
Author: fijal
Date: Wed Mar 10 03:37:16 2010
New Revision: 72020
Modified:
pypy/branch/faster-compilation/pypy/objspace/descroperation.py
Log:
Make this newstyle classes as well (avoids bad mro)
Modified: pypy/branch/faster-compilation/pypy/objspace/descroperation.py
==============================================================================
--- pypy/branch/faster-compilation/pypy/objspace/descroperation.py (original)
+++ pypy/branch/faster-compilation/pypy/objspace/descroperation.py Wed Mar 10 03:37:16 2010
@@ -32,7 +32,7 @@
"'%s' object attribute '%s' is read-only",
typename, name)
-class Object:
+class Object(object):
def descr__getattribute__(space, w_obj, w_name):
name = space.str_w(w_name)
w_descr = space.lookup(w_obj, name)
@@ -81,7 +81,7 @@
def descr__init__(space, w_obj, __args__):
pass
-class DescrOperation:
+class DescrOperation(object):
_mixin_ = True
def is_data_descr(space, w_obj):
@@ -526,7 +526,7 @@
# what is the maximum value slices can get on CPython?
# we need to stick to that value, because fake.py etc.
-class Temp:
+class Temp(object):
def __getslice__(self, i, j):
return j
slice_max = Temp()[:]
More information about the Pypy-commit
mailing list