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

Skip to content

Commit 789f47e

Browse files
authored
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2195)
(cherry picked from commit 184bd82)
1 parent dd47b19 commit 789f47e

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< 4DCB /span>:: 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