class A(object):
def __init__(self):
...
class B(object):
...
class B(object, A):
...
второй вариант класса В по сравнению с первым?
class A(object):
def __init__(self):
...
class B(object):
...
class B(object, A):
...
from time import time
class A(object):
def __init__(self):
pass
start = time()
class B(object):
pass
print time() - start
start = time()
class B(A):
pass
print time() - start