I have this class:
class C(A,B):
....
....
....
I want to build a new class with the bases A,B , but i dont actually know which bases C
has or how many.
Ive tried: class D(C.__bases__):
But I get the error:
TypeError: Error when calling the metaclass bases
list() takes at most 1 argument (3 given)
Now if I do: class D(C.__bases__[0],C.__bases__[1])
,it works, but i need todo this without knowing how many bases are there.
Tried:
D(','.joing(C.__bases__)):
But this doesnt work as well