class A(object):
def __init__(self, a):
self.a = a
def foo_a(self):
print(self.a)
class B(object):
def __init__(self, b):
self.b = b
def foo_b(self):
print(self.b)
class C(A,B):
def __init__(self, a, b):
A.__init__(self, a)
B.__init__(self, b)
c = C(a='AAA', b='BBB')
#print(dir(c))
c.foo_a()
c.foo_b()
Y2xhc3MgQShvYmplY3QpOgoJZGVmIF9faW5pdF9fKHNlbGYsIGEpOgoJCXNlbGYuYSA9IGEKCQoJZGVmIGZvb19hKHNlbGYpOgoJCXByaW50KHNlbGYuYSkKCmNsYXNzIEIob2JqZWN0KToKCWRlZiBfX2luaXRfXyhzZWxmLCBiKToKCQlzZWxmLmIgPSBiCgkKCWRlZiBmb29fYihzZWxmKToKCQlwcmludChzZWxmLmIpCgpjbGFzcyBDKEEsQik6CglkZWYgX19pbml0X18oc2VsZiwgYSwgYik6CgkJQS5fX2luaXRfXyhzZWxmLCBhKQoJCUIuX19pbml0X18oc2VsZiwgYikKCmMgPSBDKGE9J0FBQScsIGI9J0JCQicpCgojcHJpbnQoZGlyKGMpKQpjLmZvb19hKCkKYy5mb29fYigp