[PyQt] Re: ConvertToSubClass problem
MatteoBertini
naufraghi at develer.com
Tue Nov 18 13:16:15 GMT 2008
Giovanni Bajo <rasky <at> develer.com> writes:
> > > && !PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)subtype)
> >
> > && PyType_IsSubtype((PyTypeObject *)subtype, (PyTypeObject *)type)
> >
>
> By inverting the arguments, you're effectively inverting the resulting
> truth-value and thus obtaining the same effect that you obtain by
> commenting it.
I have removed the ! in front too.
The problem can be related with the question "IsSubtype(a, a) == True?"
(not investigated)
More information about the PyQt
mailing list