<div dir="ltr">Hmmm...This is interesting.  I've read a number of web sites that indicate that the class hierarchy in Python is right to left, not left to right.  Is this a common mis-perception?<div><br></div><div>Braun</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 9:47 PM, Ryan Hiebert <span dir="ltr"><<a href="mailto:ryan@ryanhiebert.com" target="_blank">ryan@ryanhiebert.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Jan 4, 2017, at 1:33 PM, Braun Brelin <<a href="mailto:bbrelin@gmail.com">bbrelin@gmail.com</a>> wrote:<br>
><br>
> The point here is 'which' foo is being called.  Since it seems to go from right to left, it finds mixin2's foo method first, and then when it finds mixin1's foo method second that becomes the one that is used...<br>
><br>
> At least that's what seems to be happening.<br>
<br>
</span>Ah, I think I see your confusion. It's not the _last_ one in the MRO that get's called, it's the _first_. The highest root (object) will always be last in the MRO, and type of the current object will be first.</blockquote></div><br></div>