[PyKDE] segfault using hasattr on a wrappertype class
Giovanni Bajo
rasky at develer.com
Tue Oct 18 21:13:03 BST 2005
Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
> It will be fixed in tonight's snapshot.
>
> It will now raise an exception saying that Foo should be derived from
> sip.wrapper. If you change it so it is, hasattr() returns False as
expected.
I have not tried that snapshot yet. Anyway, I noticed this strange
behaviour:
>>> import sip
>>> isinstance(sip.wrapper, object)
True
>>> issubclass(sip.wrapper, object)
True
Dunno if it's related to the fix.
--
Giovanni Bajo
More information about the PyQt
mailing list