[Zope] Python Question: Morphing Classes?

Dieter Maurer dieter@handshake.de
Tue, 10 Dec 2002 20:08:00 +0100


Johan Carlsson [EasyPublisher] writes:
 > ....
 > But I have tried another thing:
 > Creating an instance (a) of the class C: pass, I can set the
 > a.__class__=A (where A is another class), a will report that it
 > is a instance of A and it will have all of A's class context.
"ExtensionClass" instances do not allow you to write to the
"__class__" attribute. I think, they just ignore it.



Dieter