[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Greg Ewing
On 16/04/22 12:56 pm, Steven D'Aprano wrote: If you exclude models of MI which are logically incoherent and inconsistent, (such as Python's prior to version 2.3), then Python's model of MI is objectively as complete as you can get. You seem to be assuming that "full MI" has to include a fully

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Greg Ewing
On 15/04/22 10:37 pm, Steven D'Aprano wrote: If you look at languages that implement MI, and pick the implementations which allow it with the fewest restrictions, then that is "full MI". I believe that Python (and other languages) allow MI with the smallest set of restrictions, namely that

[Python-ideas] Subclassing and inheritance [was Re: Re: mro and super don't feel so pythonic]

2022-04-15 Thread Steven D'Aprano
On Sat, Apr 16, 2022 at 11:07:00AM +1000, Chris Angelico wrote: > > > My view: If a class inherits two parents, in any meaning of the word > > > "inherits" that follows the normal expectation that a subclass IS an > > > instance of its parent class(es), then it's MI. > > > > Inheritance and

[Python-ideas] Conditions for a coherent MI relationship [was Re: Re: mro and super don't feel so pythonic]

2022-04-15 Thread Steven D'Aprano
On Sat, Apr 16, 2022 at 11:07:00AM +1000, Chris Angelico wrote: > On Sat, 16 Apr 2022 at 11:00, Steven D'Aprano wrote: > > > and therefore > > > would become the only thing that offers "full MI", displacing other > > > languages. It's a meaningless concept, unless there is some form of > > >

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Steven D'Aprano
On Fri, Apr 15, 2022 at 05:41:55PM -, malmiteria wrote: > Sticking to the way its done "just" because it's the way it's done > helps stabilising the language, but it makes it possible to miss > improvements. > > Overall, if there's only valid reasons to implement a change, this > change

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Chris Angelico
On Sat, 16 Apr 2022 at 11:00, Steven D'Aprano wrote: > > and therefore > > would become the only thing that offers "full MI", displacing other > > languages. It's a meaningless concept, unless there is some form of > > absolute completeness that can be attained > > Well duh Chris, sometimes I

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Chris Angelico
On Sat, 16 Apr 2022 at 11:07, Chris Angelico wrote: > > On Sat, 16 Apr 2022 at 11:00, Steven D'Aprano wrote: > > > and therefore > > > would become the only thing that offers "full MI", displacing other > > > languages. It's a meaningless concept, unless there is some form of > > > absolute

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Steven D'Aprano
On Fri, Apr 15, 2022 at 11:12:26PM +1000, Chris Angelico wrote: > > If you look at languages that implement MI, and pick the implementations > > which allow it with the fewest restrictions, then that is "full MI". > > I'm with Greg on this one, for the simple reason that a future > language

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Joao S. O. Bueno
On Fri, Apr 15, 2022 at 2:44 PM malmiteria wrote: > I got an idea that *should* allow for some (keyword : some) of the changes > i want without any breaks, i kinda wanna take the time to think about it, and > once i'm a bit more sure of it, i'll talk about it in details. Since you are thinking

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread malmiteria
Chris Angelico writes: > I'm with Greg on this one, for the simple reason that a future > language could have fewer restrictions than Python does, and therefore > would become the only thing that offers "full MI", displacing other > languages. It's a meaningless concept, unless there is some form

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread malmiteria
Greg Ewing writes: > > malmiteria xD not malmalitia > Sorry! Should have gone to Specsavers... No worries :) ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Chris Angelico
On Fri, 15 Apr 2022 at 20:40, Steven D'Aprano wrote: > > On Thu, Apr 14, 2022 at 10:46:46AM +1200, Greg Ewing wrote: > > On 13/04/22 8:29 am, Steven D'Aprano wrote: > > >>When multiple parent provide candidate to a method resolution, raise an > > >>error. > > > > > >Then you aren't doing full MI

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Steven D'Aprano
On Thu, Apr 14, 2022 at 10:46:46AM +1200, Greg Ewing wrote: > On 13/04/22 8:29 am, Steven D'Aprano wrote: > >>When multiple parent provide candidate to a method resolution, raise an > >>error. > > > >Then you aren't doing full MI any more, > > That sounds like a "true Scotsman" argument. Who

[Python-ideas] Re: mro and super don't feel so pythonic

2022-04-15 Thread Greg Ewing
On 15/04/22 4:45 am, malmiteria wrote: malmiteria xD not malmalitia Sorry! Should have gone to Specsavers... -- Greg ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org