<div dir="ltr"><div><div><div class="gmail_quote"><div class="">Hi Phil, Hi Baz, Hi List,<br>
<br></div>
</div>I just wrote a patch as advertised earlier, which checks that the<br>inheritance is correct and that noone attempts to inherit from more<br>than one PyQt base class. It is based on the patch sent earlier.<br></div>
Maybe this is an improvement enough to put my patches in?<br><br>Greetings<br><br>Martin<br><br></div>Patch follows:<br><br>--- <a href="http://siplib.c.in">siplib.c.in</a> 2014-02-12 10:26:18.885579447 +0100<br>+++ siplib.in.new 2014-02-12 10:30:59.263560644 +0100<br>
@@ -9367,6 +9367,7 @@<br> {<br> PyObject *mro = ((PyTypeObject *)self)->tp_mro;<br> PyObject *base;<br>+ PyTypeObject *solid;<br> int i, n = PyTuple_GET_SIZE(mro);<br> <br> /*<br>
@@ -9385,6 +9386,15 @@<br> break;<br> }<br> }<br>+ solid = (PyTypeObject *) base;<br>+ for (; i < n; i++) {<br>+ base = PyTuple_GET_ITEM(mro, i);<br>+ if (!PyType_IsSubtype(solid, (PyTypeObject *) base)) {<br>
+ PyErr_Format(PyExc_TypeError,<br>+ "multiple C++ base classes are illegal");<br>+ return -1;<br>+ }<br>+ }<br> }<br> else<br>
{<br></div>