[issue25700] namedtuple documentation

2015-11-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset f611e2244c69 by Raymond Hettinger in branch '3.5': Issue #25700: Clarify that namedtuple property docstrings became writeable in 3.5 https://hg.python.org/cpython/rev/f611e2244c69 -- nosy: +python-dev __

[issue25700] namedtuple documentation

2015-11-22 Thread Zachary Ware
Zachary Ware added the comment: I wonder if it's worth a ..versionchanged note in the namedtuple docs pointing out that __doc__ assignment on fields only works in 3.5+ due to property docstrings becoming writable. -- nosy: +zach.ware stage: -> resolved ___

[issue25700] namedtuple documentation

2015-11-22 Thread Laur Joost
Laur Joost added the comment: Did my testing on 3.4.3 (other computer). My apologies. -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ _

[issue25700] namedtuple documentation

2015-11-22 Thread Laur Joost
New submission from Laur Joost: collections.namedtuple documentation has an example about changing the resulting class docstrings: Docstrings can be customized by making direct assignments to the ``__doc__`` fields: >>> Book = namedtuple('Book', ['id', 'title', 'authors']) >>>