8000 bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-… · python/cpython@184bd82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 184bd82

Browse files
benhoytMariatta
authored andcommitted
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173)
1 parent 601483d commit 184bd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ field names, the method and attribute names start with an underscore.
866866
.. versionchanged:: 3.1
867867
Returns an :class:`OrderedDict` instead of a regular :class:`dict`.
868868

869-
.. method:: somenamedtuple._replace(kwargs)
869+
.. method:: somenamedtuple._replace(**kwargs)
870870

871871
Return a new instance of the named tuple replacing specified fields with new
872872
values::

0 commit comments

Comments
 (0)
0