TP schrieb:
Hi,
Hereafter is an example using super.
At the execution, we obtain:
coucou
init_coucou2
coucou1
coucou2
Traceback (most recent call last):
File "essai_heritage.py", line 34, in
print b.a
AttributeError: 'coucou' object has no attribute 'a'
Why Python does not enter in the
Hi,
Hereafter is an example using super.
At the execution, we obtain:
coucou
init_coucou2
coucou1
coucou2
Traceback (most recent call last):
File "essai_heritage.py", line 34, in
print b.a
AttributeError: 'coucou' object has no attribute 'a'
Why Python does not enter in the __init__ metho