<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 28, 2014 at 11:42 AM, Paul Sokolovsky <span dir="ltr"><<a href="mailto:pmiscml@gmail.com" target="_blank">pmiscml@gmail.com</a>></span> wrote:<br>

<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
</div>Well, it's easy to treat "object" class as a special-case, "null"<br>
class.</blockquote><div><br></div><div>But the implementation doesn't, at least not for the question you're asking.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

 So, let's re-formulate questions above with "where such<br>
native base classes are not 'object'".<br>
<div class=""><br>
><br>
> Basically, if two classes have compatible layouts, you can inherit<br>
> from both at once.<br>
<br>
</div>How is "compatible layout" defined? Or "layout" for that matter at<br>
all?<br></blockquote></div><br></div><div class="gmail_extra">The layout is what the C struct defining the object looks like. These are typically defined in headers in the Include directory (e.g. listobject.h).<br><br>The definition of compatible layout is defined by the C code that gives the error message when it's incompatible. Sorry, I don't recall exactly where that is, so I recommend that you just look at CPython's source tree. (I know you have a personal desire not to look at CPython, but I can't help you without referring to it anyway.)<br clear="all">

</div><div class="gmail_extra"><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div></div>