Re: How can I dynamically insert a base class in a given class

2009-05-10 Thread Gabriel Genellina
En Sun, 10 May 2009 00:04:17 -0300, Дамјан Георгиевски escribió: How can I dynamically insert a base class in a given class? Yeah, I'm writing a class decorator that needs to manipulate the class by inserting another base class in it. In this case, as you want to modify the base class

How can I dynamically insert a base class in a given class

2009-05-09 Thread Дамјан Георгиевски
How can I dynamically insert a base class in a given class? Yeah, I'm writing a class decorator that needs to manipulate the class by inserting another base class in it. Something like: class ReallyBase(object): def someimportantmethod(self): return 'really really'