Is it possible to add a documentation string to a namedtuple in an easy manner?
I tried
from collections import namedtuple Point = namedtuple(\"Poin
Since Python 3.5, docstrings for namedtuple objects can be updated.
namedtuple
From the whatsnew:
Point = namedtuple('Point', ['x', 'y']) Point.__doc__ += ': Cartesian coodinate' Point.x.__doc__ = 'abscissa' Point.y.__doc__ = 'ordinate'