[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.
Raymond Hettinger
report at bugs.python.org
Tue Jul 27 21:56:15 CEST 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Thanks for the idea and quick reply. In view of the discussion, I'm going to reject the feature request. The trade-off in added API complexity isn't worth the benefit especially given that subclassing already provides an option:
class Point(namedtuple('Point', 'x y z')):
"""Planet location with Sun as center point
and x-axis passing through Alpha Centauri
and distance measured in light seconds"""
----------
resolution: -> rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9391>
_______________________________________
More information about the Python-bugs-list
mailing list