[docs] [issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)
report at bugs.python.org
Wed Oct 17 22:00:19 CEST 2012
Andrew Svetlov added the comment:
After brief looking sources I figured out it can be solved by adding setters for __isabstractmethod__ to classmethod/staticmethod objects.
It can be done, I'll try to make a patch.
For property situation is worse: property is abstract if any of getter/setter/deleter is abstract.
Which object attribute should be set for setting __isabstractmethod__ for property?
We can make the rule: abstractmethod for classmethod/staticmethod/property should set descriptor as abstract, not functions behind it.
I'm not sure is it true solution but I like to try to make a patch for that.
Anyway, the patch for describing current behavior in the docs is welcome.
stage: -> needs patch
versions: +Python 3.4
Python tracker <report at bugs.python.org>
More information about the docs