[pypy-dev] New style classes

Richard Emslie rxe at ukshells.co.uk
Sun Jul 11 15:08:08 CEST 2004


Hi PyPy ers,

I was wondering why we use old style classes everywhere in the pypy code 
base - esp since pypy only supports new style classes (!).

Would anyone have a huge objection to making ObjSpace a new style class? 
(Needed for the trace object space)


Also in CPython you can

class A(object): pass
class B(object): pass
a = A()
a.__class__ = B

but in PyPy we get "AttributeError: read-only attribute".

Is this just a TODO, or is it a feature? ;-)


Cheers,
Richard



More information about the Pypy-dev mailing list