summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBen Hoyt <benhoyt@gmail.com>2017-06-13 19:20:51 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-13 19:20:51 (GMT)
commit184bd82ba8106785ba22f0d2477dbd08bef821fb (patch)
treef8748f0bab7486ccdbae7e5c0c1622abdacfac26 /Doc/library
parent601483d3b8a0433ca25f7fd6beea2cef674be039 (diff)
downloadcpython-184bd82ba8106785ba22f0d2477dbd08bef821fb.zip
cpython-184bd82ba8106785ba22f0d2477dbd08bef821fb.tar.gz
cpython-184bd82ba8106785ba22f0d2477dbd08bef821fb.tar.bz2
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173)
Diffstat (limited to 'Doc/library')
-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 2d51f0c..d6d2056 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::