I have a usecase where i need to add a new parent class at run time for an already instantiated class in python. What would be the best way to achieve this?
To clarify a bit more :
Suppose we have a OriginalBaseClass and a child class derived from the original OriginalBaseClass. Now we have an object A of the child class and at run time we need to add a new class called NewBaseClass as one of the parent classes of child class object A (along with OriginalBaseClass).
Is this even possible? I would love to hear your thoughts. Thank you.