[Python-checkins] cpython (merge 3.5 -> default): merge
raymond.hettinger
python-checkins at python.org
Mon Nov 9 11:37:12 EST 2015
https://hg.python.org/cpython/rev/a4c4b356a27c
changeset: 99018:a4c4b356a27c
parent: 99016:3f8998c2fbf9
parent: 99017:6e6ebe9cd441
user: Raymond Hettinger <python at rcn.com>
date: Mon Nov 09 08:26:28 2015 -0800
summary:
merge
files:
Doc/library/collections.rst | 4 ++--
Doc/whatsnew/3.5.rst | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -929,10 +929,10 @@
fields:
>>> Book = namedtuple('Book', ['id', 'title', 'authors'])
- >>> Book.__doc__ = 'Hardcover book in active collection'
+ >>> Book.__doc__ += ': Hardcover book in active collection'
>>> Book.id.__doc__ = '13-digit ISBN'
>>> Book.title.__doc__ = 'Title of first printing'
- >>> Book.author.__doc__ = 'List of authors sorted by last name'
+ >>> Book.authors.__doc__ = 'List of authors sorted by last name'
Default values can be implemented by using :meth:`_replace` to
customize a prototype instance:
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -865,7 +865,7 @@
Docstrings produced by :func:`~collections.namedtuple` can now be updated::
Point = namedtuple('Point', ['x', 'y'])
- Point.__doc__ = 'ordered pair'
+ Point.__doc__ += ': Cartesian coodinate'
Point.x.__doc__ = 'abscissa'
Point.y.__doc__ = 'ordinate'
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list