I have the following situation in python 2.7:
class A(object):
def __init__(self, a):
self._a = a
class B(object):
def __init__(self, b):
self._b = b
class C(A, B):
def __init__(self):
# How to init A with 'foo' and B with 'bar'?
It should also be noted that one of the parent classes, say A, is a library class and the solution should preferably assume it is set in stone; While the other class B is mine and could be freely changed.
What is the correct way to initialize both parent classes correctly? Thanks!