Python2.1/ExtensionClass: Changing the __class__

J.Jacob joost_jacob at
Thu Aug 29 17:56:30 CEST 2002

Yes you can assign to __class__ and it works often.
The exception: not if you are assigning a new style class to the
.__class__  of an instance object of an old style class.
I did post about this here on c.l.p. on August 10 and there is a mixin
function there too and a short demo program.  Also posted a bug report
and it seems they are working on it.  Title of the post was "Assigning
to __class__".


More information about the Python-list mailing list