[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable
Serhiy Storchaka
report at bugs.python.org
Thu May 5 15:28:39 EDT 2016
Serhiy Storchaka added the comment:
With the patch class properties work:
>>> class A:
... @classmethod
... @property
... def __doc__(cls):
... return 'A doc for %r' % cls.__name__
...
>>> A.__doc__
"A doc for 'A'"
This is worth to be explicitly documented.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19072>
_______________________________________
More information about the Python-bugs-list
mailing list