This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients eric.snow, rhettinger, serhiy.storchaka
Date 2012-12-13.19:28:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355426929.88.0.790630219108.issue16669@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-12-13 19:28:49serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, eric.snow
2012-12-13 19:28:49serhiy.storchakasetmessageid: <1355426929.88.0.790630219108.issue16669@psf.upfronthosting.co.za>
2012-12-13 19:28:49serhiy.storchakalinkissue16669 messages
2012-12-13 19:28:49serhiy.storchakacreate