[PyQt] Re: ConvertToSubClass problem

MatteoBertini naufraghi at develer.com
Tue Nov 18 12:07:44 GMT 2008


Phil Thompson <phil <at> riverbankcomputing.com> writes:

> 
> On Tue, 18 Nov 2008 01:12:49 +0100, Giovanni Bajo <rasky <at> develer.com>
> wrote:
> > Hi Phil,
> > 
> > this patch:
> > 
> > 2007/02/25  0:19:29  phil
> > Included Matt Newell's fix for making sure that a sub-class convertor
> > returns the most specific type available.
> > 
[--8<--]
> > 
> > && !PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)subtype)
> > 
> > make it so that the convertor's result is ignored.

I have noticed a fun thing, rewriting the test as:

&& PyType_IsSubtype((PyTypeObject *)subtype, (PyTypeObject *)type)

everything seems to work as espected again...

-- 
/// Matteo Bertini - Develer srl \\\
\\\    http://www.develer.com    /// 




More information about the PyQt mailing list