From: Mariatta Date: Wed, 14 Jun 2017 19:07:42 +0000 (-0700) Subject: bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2196) X-Git-Tag: v2.7.14rc1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b30107bfdc9ba5afbe7f4a9d96273d6078bc310;p=thirdparty%2FPython%2Fcpython.git bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2196) (cherry picked from commit 184bd82ba8106785ba22f0d2477dbd08bef821fb) --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index d80b5bf94e4d..25e5e22fa37f 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -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::