Re: Implicit __init__ execution in multiple inheritance

2010-02-16 Thread Bruno Desthuilliers
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

Re: Implicit __init__ execution in multiple inheritance

2010-02-16 Thread Arnaud Delobelle
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

Implicit __init__ execution in multiple inheritance

2010-02-16 Thread rludwinowski
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