News for hackers. Stuff that matters.
Re:Never run ‘python’ in your downloads folder by glyph on Monday August 24, 2020 @10:49PM (#24267727)
There’s no error in the original example; in Python, the ability to participate in inheritance diamonds with arbitrary other classes is a feature which must be explicitly documented and maintained. James Knight wrote a really good piece on this many years ago: https://fuhm.net/super-harmful/

The solution is just to avoid inheritance. It’s full of terrible pitfalls in most languages, but Python more than most.

There are no comments on this comment yet.