Arnaud Delobelle a écrit :
rludwinowski writes:
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?
Because it's documented beh
rludwinowski writes:
> 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?
Because it's documented behavi
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?
--
http://mail.python.org/mailman/listinfo/python-list