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?