From 50faf4066b2b6378826ad10a9ed7b9aafd87a8b5 Mon Sep 17 00:00:00 2001 From: Ben Hoyt Date: Tue, 13 Jun 2017 15:20:51 -0400 Subject: [PATCH] [3.5] bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (cherry picked from commit 184bd82ba8106785ba22f0d2477dbd08bef821fb) --- Doc/library/collections.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index d0aa62e3683edf..674cb202118f0d 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -855,7 +855,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::