Re: [Python-Dev] deprecation of abstractstaticmethod and abstractclassmethod

2019-05-21 Thread Nick Coghlan
On Thu, 16 May 2019 at 06:03, Steve Dower wrote: > > On 15May2019 1248, Nathaniel Smith wrote: > > I don't care about the deprecation either way. But can we fix the > > individual decorators so both orders work? Even if it requires a special > > case in the code, it seems worthwhile to remove a

Re: [Python-Dev] deprecation of abstractstaticmethod and abstractclassmethod

2019-05-16 Thread Antoine Pitrou
On Wed, 15 May 2019 13:00:16 -0700 Steve Dower wrote: > On 15May2019 1248, Nathaniel Smith wrote: > > I don't care about the deprecation either way. But can we fix the > > individual decorators so both orders work? Even if it requires a special > > case in the code, it seems worthwhile to

Re: [Python-Dev] deprecation of abstractstaticmethod and abstractclassmethod

2019-05-15 Thread Steve Dower
On 15May2019 1248, Nathaniel Smith wrote: I don't care about the deprecation either way. But can we fix the individual decorators so both orders work? Even if it requires a special case in the code, it seems worthwhile to remove a subtle user-visible footgun. The classmethod and staticmethod

Re: [Python-Dev] deprecation of abstractstaticmethod and abstractclassmethod

2019-05-15 Thread Nathaniel Smith
I don't care about the deprecation either way. But can we fix the individual decorators so both orders work? Even if it requires a special case in the code, it seems worthwhile to remove a subtle user-visible footgun. On Wed, May 15, 2019, 12:39 Ethan Furman wrote: > In issue 11610*

[Python-Dev] deprecation of abstractstaticmethod and abstractclassmethod

2019-05-15 Thread Ethan Furman
In issue 11610* abstractclassmethod and abstractstaticmethod were deprecated, apparently because they were redundant with the new technique of calling `classmethod` or `staticmethod` followed by a call to `abstractmethod`. To put it in code: # deprecated class Foo(ABC):