Message177434
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. |
|
Date |
User |
Action |
Args |
2012-12-13 19:28:49 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, eric.snow |
2012-12-13 19:28:49 | serhiy.storchaka | set | messageid: <1355426929.88.0.790630219108.issue16669@psf.upfronthosting.co.za> |
2012-12-13 19:28:49 | serhiy.storchaka | link | issue16669 messages |
2012-12-13 19:28:49 | serhiy.storchaka | create | |
|