Serhiy Storchaka added the comment:

Yes, we can use inheritance trick/idiom to specify a class docstring. But there 
are no way to specify attribute docstrings.

I encountered this when rewriting some C implemented code to Python. 
PyStructSequence allows you to specify docstrings for a class and attributes, 
but namedtuple does not.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16669>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to