Is it possible to add a documentation string to a namedtuple in an easy manner?
I tried
from collections import namedtuple Point = namedtuple(\"Poin
Came across this old question via Google while wondering the same thing.
Just wanted to point out that you can tidy it up even more by calling namedtuple() right from the class declaration:
from collections import namedtuple class Point(namedtuple('Point', 'x y')): """Here is the docstring."""