]> granicus.if.org Git - python/commitdiff
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2196)
authorMariatta <Mariatta@users.noreply.github.com>
Wed, 14 Jun 2017 19:07:42 +0000 (12:07 -0700)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2017 19:07:42 +0000 (12:07 -0700)
(cherry picked from commit 184bd82ba8106785ba22f0d2477dbd08bef821fb)

Doc/library/collections.rst

index d80b5bf94e4d2462bc1fb9877e375d82d5234ca7..25e5e22fa37fdb3ed67e78e0351fe316d09e96a7 100644 (file)
@@ -704,7 +704,7 @@ field names, the method and attribute names start with an underscore.
    .. versionchanged:: 2.7
       Returns an :class:`OrderedDict` instead of a regular :class:`dict`.
 
-.. method:: somenamedtuple._replace(kwargs)
+.. method:: somenamedtuple._replace(**kwargs)
 
    Return a new instance of the named tuple replacing specified fields with new
    values::