super() is not called
@tobiasmue
Submitted by Tobias Mueller Link to original bug (#749680)
Description
My test case is:
#!/usr/bin/env python
from gi.repository import Gtk
class Super(object):
def __init__(self):
print("Super here")
super(Super, self).__init__()
class Side(Super):
def __init__(self):
print("Side here")
super(Side, self).__init__()
#class Child(Side, Gtk.Window):
class Child(Gtk.Window, Side):
def __init__(self):
print("Child here")
super(Child, self).__init__()
Super()
print('-----')
Side()
print('-----')
Child()
I have expected that Side's constructor is called as well as Super's. If I take care of the order of the base classes, then it works, but I didn't expect having to do that.
I didn't understand bug 315079, bug 351566 nor bug 710646, so this might very well be a duplicate. Although I am missing a concise test case and in my example.