I have the following class inheritance in Python:
A
|
B--D
| |
C E
What bothers me is that I have a lot of duplicate class methods in C and E. This can be avoided if I make E a child of C instead of D, but then I'd have to duplicate D's methods in E.
Is there a way for E to subclass both D and C so that E has functions from both C and D?
class E(C,D):...?super, every class should usesuper. The order in which each individual class's__init__method is called depends on the final method resolution order.