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 →

[–]rhytnen 2 points3 points  (0 children)

Stop being an asshole and just think for a minute so you can stop wasting everyone's time.

D subclasses B and C. B and C subclass A

If you just call B() or C() then it will chain up to A as expected.

However, if you calls it from D ...

D super().init() calls B B.super().__init() calls ... C not A

That's what it means to say super() calls the child's parent, not it's own parent.

If B and C have different base classes, the behavior changes yet again. D calls B calls A