Remove workaround for defaults in namedtuple now that we have the defaults parameter...
authorAndre Delfino <adelfino@gmail.com>
Tue, 21 May 2019 00:52:17 +0000 (21:52 -0300)
committerCheryl Sabella <cheryl.sabella@gmail.com>
Tue, 21 May 2019 00:52:17 +0000 (20:52 -0400)
Doc/library/collections.rst

index e0469c208100060182a73d34084cd54fcda9b614..ae21db216fdebed772897dec6cb2a82d1cdbcb25 100644 (file)
@@ -1017,15 +1017,6 @@ fields:
 .. versionchanged:: 3.5
    Property docstrings became writeable.
 
-Default values can be implemented by using :meth:`~somenamedtuple._replace` to
-customize a prototype instance:
-
-    >>> Account = namedtuple('Account', 'owner balance transaction_count')
-    >>> default_account = Account('<owner name>', 0.0, 0)
-    >>> johns_account = default_account._replace(owner='John')
-    >>> janes_account = default_account._replace(owner='Jane')
-
-
 .. seealso::
 
     * See :class:`typing.NamedTuple` for a way to add type hints for named