Implicit __init__ execution in multiple inheritance

rludwinowski rludwinowski at gmail.com
Tue Feb 16 09:37:00 EST 2010


class A:
    def __init__(self):
        print("A__init__")

class B:
    def __init__(self):
        print("B__init__")

class C(A, B):
    pass

C()

>> A__init__

Why __init__ class B will not be automatic executed?



More information about the Python-list mailing list