From: Ben Hoyt Date: Tue, 13 Jun 2017 19:20:51 +0000 (-0400) Subject: bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) X-Git-Tag: v3.7.0a1~599 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=184bd82ba8106785ba22f0d2477dbd08bef821fb;p=thirdparty%2FPython%2Fcpython.git bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 2d51f0cfdc09..d6d2056dfc49 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -866,7 +866,7 @@ field names, the method and attribute names start with an underscore. .. versionchanged:: 3.1 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::