Issue #24064: Add __doc__ to the example in collections.rst.

This commit is contained in:
Berker Peksag 2015-05-13 12:16:27 +03:00
parent 5af9e13c18
commit de7cafaa63
1 changed files with 3 additions and 3 deletions

View File

@ -929,9 +929,9 @@ fields:
>>> Book = namedtuple('Book', ['id', 'title', 'authors']) >>> Book = namedtuple('Book', ['id', 'title', 'authors'])
>>> Book.__doc__ = 'Hardcover book in active collection' >>> Book.__doc__ = 'Hardcover book in active collection'
>>> Book.id = '13-digit ISBN' >>> Book.id.__doc__ = '13-digit ISBN'
>>> Book.title = 'Title of first printing' >>> Book.title.__doc__ = 'Title of first printing'
>>> Book.author = 'List of authors sorted by last name' >>> Book.author.__doc__ = 'List of authors sorted by last name'
Default values can be implemented by using :meth:`_replace` to Default values can be implemented by using :meth:`_replace` to
customize a prototype instance: customize a prototype instance: