The declarations "class MixinBase:" and "class MixinBase(object):"
mean different things under Python 2.x.  Using "(object)" denotes a
"new style class" (which is an unfortunate name for them, since
they've been around since version 2.2), which has different semantics
than an "old style class."  See:

http://www.python.org/download/releases/2.2.3/descrintro/

I have no idea what the expected behavior is for mixing the two, but
I'm not surprised that it doesn't work (old style classes are all but
deprecated).

Eli

On Sun, Feb 27, 2011 at 8:58 PM, flya flya <[email protected]> wrote:
> My project has many class using multiple inheritance to reuse some code,
> like thses:
>
> Class FooDialog(QDialog, MixinBase):
>           .....
>
> I find when the MixinBase defined without object as its parent, the program
> often crash.
>
> Class MixinBase:
>      pass
>
> But when make it from object, the problem goes awary.
>
> Class MixinBase(object):
>     pass
>
> I dont know the difference between the two class, and not sure is this a
> PySide bug.
> Because this is only occasional, I can‘t write some code to display it, just
> post the issue here.
>
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.openbossa.org/listinfo/pyside
>
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to