osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

super or not super?


?s 02:11 de 15/07/19, Chris Angelico escreveu:
> On Mon, Jul 15, 2019 at 10:51 AM Paulo da Silva
> <p_s_d_a_s_i_l_v_a_ns at netcabo.pt> wrote:
>>
...

>>
>> Thank you Jollans. I forgot multiple inheritance. I never needed it in
>> python, so far.
>>
> 
> Something to consider is that super() becomes useful even if someone
> else uses MI involving your class. Using super() ensures that your
> class will play nicely in someone else's hierarchy, not just your own.
> 
Yes, I see. Thanks.