diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-05-13 09:16:27 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-05-13 09:16:27 (GMT) |
commit | de7cafaa63db3849d11b1d17195ee23eacad7325 (patch) | |
tree | 248270e0739f108c30a47384c7159dbfb0c95448 /Doc | |
parent | 5af9e13c1865d71e2517a4f72354d4938e1e28fa (diff) | |
download | cpython-de7cafaa63db3849d11b1d17195ee23eacad7325.zip cpython-de7cafaa63db3849d11b1d17195ee23eacad7325.tar.gz cpython-de7cafaa63db3849d11b1d17195ee23eacad7325.tar.bz2 |
Issue #24064: Add __doc__ to the example in collections.rst.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/collections.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 892f05d..e27774c 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -929,9 +929,9 @@ fields: >>> Book = namedtuple('Book', ['id', 'title', 'authors']) >>> Book.__doc__ = 'Hardcover book in active collection' - >>> Book.id = '13-digit ISBN' - >>> Book.title = 'Title of first printing' - >>> Book.author = 'List of authors sorted by last name' + >>> Book.id.__doc__ = '13-digit ISBN' + >>> Book.title.__doc__ = 'Title of first printing' + >>> Book.author.__doc__ = 'List of authors sorted by last name' Default values can be implemented by using :meth:`_replace` to customize a prototype instance: |