summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-06-14 19:07:55 (GMT)
committerGitHub <noreply@github.com>2017-06-14 19:07:55 (GMT)
commita3afdca2190201bf6572435226dd3f8668139002 (patch)
treec8d737bd3096c16364d592c06caaa550c9c89243
parentee0572fc96cbc4a61ae0de5b2408334a132faa12 (diff)
downloadcpython-a3afdca2190201bf6572435226dd3f8668139002.zip
cpython-a3afdca2190201bf6572435226dd3f8668139002.tar.gz
cpython-a3afdca2190201bf6572435226dd3f8668139002.tar.bz2
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2197)
(cherry picked from commit 184bd82ba8106785ba22f0d2477dbd08bef821fb)
-rw-r--r--Doc/library/collections.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index d0aa62e..674cb20 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::