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

2022-04-22 Thread Matsuoka Takuo
Thanks for your comments! On Fri, 22 Apr 2022 at 23:27, Steven D'Aprano wrote: > > On Fri, Apr 22, 2022 at 08:46:38PM +1100, Matsuoka Takuo wrote: > > > > So I may not have been told a refactoring like that shouldn't involve > > a new instance of overriding, but may I have essentially been told I

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

2022-04-22 Thread Steven D'Aprano
On Fri, Apr 22, 2022 at 08:46:38PM +1100, Matsuoka Takuo wrote: > On Fri, 22 Apr 2022 at 15:47, Christopher Barker wrote: > > > > Sure -- but there's nothing special or difficult here -- refactoring > > can create breaking changes. I believe it was part of Hettinger's > > thesis in "Super Consid

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

2022-04-22 Thread Steven D'Aprano
On Wed, Apr 20, 2022 at 03:43:44PM -, malmiteria wrote: > to give you exemples of problems : > 1) let's start with a django problem : > ``` > class MyView(ModelView, PermissionMixin): pass > ``` > doesn't apply any of the PermissionMixin logic to the view. > It doesn't raise a single error ei

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

2022-04-22 Thread Matsuoka Takuo
On Fri, 22 Apr 2022 at 15:47, Christopher Barker wrote: > > Sure -- but there's nothing special or difficult here -- refactoring can > create breaking changes. I believe it was part of Hettinger's thesis in > "Super Considered Super" that the use of super() is part of the API of a > class hiera