[Python-ideas] Re: General methods

2020-05-08 Thread Andrew Barnert via Python-ideas
On May 8, 2020, at 15:44, Steven D'Aprano wrote: > > On Fri, May 08, 2020 at 10:46:45PM +0300, Serhiy Storchaka wrote: > >> I propose to add the METH_GENERAL flag, which is applicable to methods >> as METH_CLASS and METH_STATIC (and is mutually incompatible with them). >> If it is set, the ch

[Python-ideas] Re: General methods

2020-05-08 Thread Cameron Simpson
On 09May2020 08:38, Steven D'Aprano wrote: On Fri, May 08, 2020 at 10:46:45PM +0300, Serhiy Storchaka wrote: I propose to add the METH_GENERAL flag, which is applicable to methods as METH_CLASS and METH_STATIC (and is mutually incompatible with them). If it is set, the check for the type of se

[Python-ideas] Re: General methods

2020-05-08 Thread Guido van Rossum
On Fri, May 8, 2020 at 3:47 PM Steven D'Aprano wrote: > On Fri, May 08, 2020 at 10:46:45PM +0300, Serhiy Storchaka wrote: > > > I propose to add the METH_GENERAL flag, which is applicable to methods > > as METH_CLASS and METH_STATIC (and is mutually incompatible with them). > > If it is set, the

[Python-ideas] Re: General methods

2020-05-08 Thread Steven D'Aprano
On Fri, May 08, 2020 at 10:46:45PM +0300, Serhiy Storchaka wrote: > I propose to add the METH_GENERAL flag, which is applicable to methods > as METH_CLASS and METH_STATIC (and is mutually incompatible with them). > If it is set, the check for the type of self will be omitted, and you > can pass