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? 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'