[PyQt] sip bug?

Marcos Dione mdione at grulic.org.ar
Sat Aug 15 11:00:27 BST 2009


    I'm really not sure if this is a bug or not. is related to the inheritance
from QObject and dbus.service.Object. I have this code:

MetaDBusObject= type (dbus.service.Object)
MetaQObject= type (QObject)

class MetaObject (MetaQObject, MetaDBusObject):
    """Dummy metaclass that allows us to inherit from both QObject and d.s.Object"""
    def __init__(cls, name, bases, dct):
        MetaDBusObject.__init__ (cls, name, bases, dct)
        MetaQObject.__init__ (cls, name, bases, dct)

    This works fine. but if I reverse the order of the inheritance in the
MetaObject class definition:

class MetaObject (MetaDBusObject, MetaQObject):
    [...]

    I get this error:

python: /tmp/buildd/sip4-qt3-4.8.1/siplib/siplib.c:7213: sipWrapperType_init: Assertion `self->type->u.td_py_type == ((void *)0)' failed.
Aborted

-- 
(Pseudo) Random fortune:
mdione at tempest:~$ cat /dev/random | uuencode random | head -n 3
begin 644 random
M=?:,8:@5MVVIM6>NAYQ6O at I&H86>.3(L"F7S>U'.9`2;%LEAR/E8M[*F=(MP
M5C>B3Y2F(X,`SW1UPAL*+OIV'EM/Z$_-15':B#<6I99_P,H%=$S6$H<&W-!;


More information about the PyQt mailing list