git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Understanding the MRO with multiple inheritance


On Sat, Mar 30, 2019 at 7:08 PM Arup Rakshit <ar at zeit.io> wrote:
>
> Thanks Chris and Dieter. I think I got it. It seems it follows the __mro__ of the caller class, not the current class __mro_.

That is correct. It is the object that has an MRO, and it's that
object's MRO that matters to super.

ChrisA