Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 7:46 PM wrote: > I ... am making an effort to get used to the rtl order as quickly as > possible. > Funny, you keep saying right-to-left. I think the issue is you think the parent class is more important. Fight the power! Youth revolt! In Python, the children are in contr

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread alanqueiros
On Monday, June 13, 2016 at 7:29:05 PM UTC-3, Gregory Ewing wrote: > > I see that in most cases the order doesn't matter, but still I would > > think that since the correct order is from right to left, that should be the > > common practice. > > This order is only "correct" if overriding is what y

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 2:46 PM wrote: > Thank you for your replies. I don't know if I'm quoting you correctly, I'm > quite confused with Google Groups... not sure if it's a "forum", something > like a mailing list, or both... or neither. > Mailing list. A "forum" in the metaphorical sense, not

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Gregory Ewing
alanquei...@gmail.com wrote: I see that in most cases the order doesn't matter, but still I would think that since the correct order is from right to left, that should be the common practice. This order is only "correct" if overriding is what you want. That's not always going to be the case. Th

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread alanqueiros
Thank you for your replies. I don't know if I'm quoting you correctly, I'm quite confused with Google Groups... not sure if it's a "forum", something like a mailing list, or both... or neither. > The class' MRO ("Method Resolution Order") determines in which > order attributes are looked up. > E

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 12:01 AM wrote: > I haven't used Python for some time so I don't feel confident to judge > Yet, you are clearly judging the code you pasted as not OK. Perhaps you guys could help me either convincing me that the bpaste code is > OK > It would be helpful for you to expla

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Ian Kelly
On Mon, Jun 13, 2016 at 1:13 AM, dieter wrote: > alanquei...@gmail.com writes: > >> I'm trying to override methods inherited from a superclass by methods >> defined in a mixin class. >> Here's an sscce: >> https://bpaste.net/show/6c7d8d590658 (never expires) >> >> I've had problems finding the pr

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Peter Otten
alanquei...@gmail.com wrote: > Hello there. > > I'm trying to override methods inherited from a superclass by methods > defined in a mixin class. Here's an sscce: > https://bpaste.net/show/6c7d8d590658 (never expires) > #the following represents classes I don't have control over > class Base(obj

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread dieter
alanquei...@gmail.com writes: > I'm trying to override methods inherited from a superclass by methods defined > in a mixin class. > Here's an sscce: > https://bpaste.net/show/6c7d8d590658 (never expires) > > I've had problems finding the proper way to do that, since at first the base > class was

Overriding methods inherited from a superclass with methods from a mixin

2016-06-12 Thread alanqueiros
Hello there. I'm trying to override methods inherited from a superclass by methods defined in a mixin class. Here's an sscce: https://bpaste.net/show/6c7d8d590658 (never expires) I've had problems finding the proper way to do that, since at first the base class wasn't to the right and I've assu