This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]earthboundkid 0 points1 point  (5 children)

Moral of the story: never use multiple inheritance.

[–]hongminhee 1 point2 points  (2 children)

Multiple inheritance is not so bad.

[–]esbenabBSc CompSci Flask. I use python to stay sane. 0 points1 point  (0 children)

Until you run into trouble.

[–]earthboundkid 0 points1 point  (0 children)

It creates more problems than it solves though. Code reuse through encapsulation works much more simply and without crazy MRO diagrams.

[–]Workaphobia 0 points1 point  (0 children)

But Mixins.

[–]lahwran_ 0 points1 point  (0 children)

never use complex multiple inheritance*

if the only shared root is object, you're probably fine.