Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6220c02 commit 3099ae4Copy full SHA for 3099ae4
1 file changed
Doc/library/collections.rst
@@ -1017,15 +1017,6 @@ fields:
1017
.. versionchanged:: 3.5
1018
Property docstrings became writeable.
1019
1020
-Default values can be implemented by using :meth:`~somenamedtuple._replace` to
1021
-customize a prototype instance:
1022
-
1023
- >>> Account = namedtuple('Account', 'owner balance transaction_count')
1024
- >>> default_account = Account('<owner name>', 0.0, 0)
1025
- >>> johns_account = default_account._replace(owner='John')
1026
- >>> janes_account = default_account._replace(owner='Jane')
1027
1028
1029
.. seealso::
1030
1031
* See :class:`typing.NamedTuple` for a way to add type hints for named
0 commit comments