[PyKDE] segfault using hasattr on a wrappertype class

Giovanni Bajo rasky at develer.com
Thu Oct 13 13:45:57 BST 2005


Hello,

this snippet causes a segfault on my computer (using Python 2.4.2):

>>> import sip
>>> sip.SIP_VERSION_STR
'4.3.1'
>>> class Foo(object):
...     __metaclass__ = sip.wrappertype
...
>>> hasattr(Foo, "bar")
Segmentation fault

-- 
Giovanni Bajo




More information about the PyQt mailing list