Python2.1/ExtensionClass: Changing the __class__

J.Jacob joost_jacob at hotmail.com
Thu Aug 29 11:56:30 EDT 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__".

For-now-lets-just-try-not-to-do-too-much-hacking-ly-yrs



More information about the Python-list mailing list