@@ -0,0 +1,534 @@
+class A:%0A    def __init__(self, x):%0A        print('A init', x)%0A        self.x = x%0A%0A    def f(self):%0A        print(self.x)%0A%0A    def f2(self):%0A        print(self.x)%0A%0Aclass B:%0A    def __init__(self, x):%0A        print('B init', x)%0A        self.x = x%0A%0A    def f(self):%0A        print(self.x)%0A%0A    def f3(self):%0A        print(self.x)%0A%0A%0Aclass Sub(A, B):%0A    def __init__(self):%0A        A.__init__(self, 1)%0A        B.__init__(self, 2)%0A        print('Sub init')%0A%0A    def g(self):%0A        print(self.x)%0A%0Ao = Sub()%0Aprint(o.x)%0Ao.f()%0Ao.f2()%0Ao.f3()%0A

Add testcase for multiple inheritance.