[Pythonmac-SIG] changging inheritance on the fly?

Bob Ippolito bob at redivi.com
Sun Apr 17 14:26:32 CEST 2005


On Apr 17, 2005, at 6:30 AM, altern wrote:

> probably a bit offtopic since it is nothing mac specific but i didnt 
> know where to ask.
>
> is it possible to change the superclass a class inherits from on the 
> fly?
> for example i have this class inheriting from Top but i want it to 
> inherit later on the fly from another class living in another module. 
> I am doing this below but it doesnt work, 'm' doesnt change. Maybe i 
> have to define the class Test on the fly to achive this? but i dont 
> like much to do that. any other suggestions? thanks

Probably, but don't.  What you're doing is best done other ways.

-bob



More information about the Pythonmac-SIG mailing list