[Python-ideas] Docstrings for namedtuple

Serhiy Storchaka storchaka at gmail.com
Wed Dec 12 21:12:24 CET 2012


On 12.12.12 21:56, M.-A. Lemburg wrote:
> IMO, attributes should be documented in the existing doc parameter,
> not separately. This makes the intention clear and the code overall
> more readable.

Sorry, I didn't understand what you mean. There is no doc parameter for 
namedtuple yet.

For overloading class docstring we can use inheritance idiom. But there 
is no way to change field docstring. All field docstrings generated 
using template 'Alias for field number {index:d}'.





More information about the Python-ideas mailing list