Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.3
-
None
-
pypy3.8
Description
Hello PySide team,
This bug report is specific to PyPySide, the tests here
from PySide6 import QtCore class Mixin: def __init__(self): print('Mixin.__init__') class Object(QtCore.QObject): def __init__(self): print('Object.__init__') QtCore.QObject.__init__(self) class Right(Object, Mixin): def __init__(self): Object.__init__(self) Mixin.__init__(self) class Left(Mixin, Object): def __init__(self): Object.__init__(self) Mixin.__init__(self) def test_right_mixin(): x = Right() def test_left_mixin(): x = Left() if __name__ == '__main__': print('Right') Right() print('Left') Left() print('Done')
The following output happens on PyPy environments
/Users/ogi/.pyenv/versions/pyqtgraph-pyside6-pypy38/bin/pypy /Users/ogi/Developer/pyqtgraph/playground/test-mixin.py Right Object.__init__ Mixin.__init__ Left Object.__init__ Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
The following output occurs on non-PyPy environments
/Users/ogi/.pyenv/versions/pyqtgraph-pyside6_63-py39/bin/python /Users/ogi/Developer/pyqtgraph/playground/test-mixin.py Right Object.__init__ Mixin.__init__ Left Object.__init__ Mixin.__init__ Done Process finished with exit code 0
Attachments
Issue Links
- duplicates
-
PYSIDE-2282 QMainWindow and multiple inheritance from QWidget
- Closed
- relates to
-
PYSIDE-1564 QObject does not support cooperative multiple inheritance
- Closed
-
PYSIDE-2506 Unable to subclass QPaintDeviceWindow
- Closed