This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Use ** correctly for "kwargs" in signature of namedtuple._replace()
Type: Stage: resolved
Components: Documentation Versions: Python 3.7, Python 3.6, Python 3.5, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: Mariatta, benhoyt, docs@python, rhettinger, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-06-13 18:49 by benhoyt, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 2173 merged benhoyt, 2017-06-13 18:49
PR 2195 merged Mariatta, 2017-06-14 18:40
PR 2196 merged Mariatta, 2017-06-14 18:57
PR 2197 merged Mariatta, 2017-06-14 18:58
Messages (8)
msg295949 - (view) Author: Ben Hoyt (benhoyt) * Date: 2017-06-13 18:49
The documentation for namedtuple._replace() needs a tweak: currently its signature shows "kwargs" without the ** notation, indicating it's a single, positional argument. It should have the ** to indicate it's actually any number of keyword arguments.

See https://docs.python.org/3/library/collections.html#collections.somenamedtuple._replace and compare with the docs for the signature of Logger.debug() for example: https://docs.python.org/3/library/logging.html#logging.Logger.debug
msg295952 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-06-13 19:20
New changeset 184bd82ba8106785ba22f0d2477dbd08bef821fb by Mariatta (Ben Hoyt) in branch 'master':
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173)
https://github.com/python/cpython/commit/184bd82ba8106785ba22f0d2477dbd08bef821fb
msg295985 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2017-06-14 05:22
This looks fine.
msg295988 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-06-14 05:26
Sorry, wrong issue.
msg296022 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-06-14 18:59
New changeset 789f47ebb56283bd0156957121ac2854817b2bf9 by Mariatta in branch '3.6':
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2195)
https://github.com/python/cpython/commit/789f47ebb56283bd0156957121ac2854817b2bf9
msg296023 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-06-14 19:07
New changeset 4b30107bfdc9ba5afbe7f4a9d96273d6078bc310 by Mariatta in branch '2.7':
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2196)
https://github.com/python/cpython/commit/4b30107bfdc9ba5afbe7f4a9d96273d6078bc310
msg296024 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-06-14 19:07
New changeset a3afdca2190201bf6572435226dd3f8668139002 by Mariatta in branch '3.5':
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2197)
https://github.com/python/cpython/commit/a3afdca2190201bf6572435226dd3f8668139002
msg296025 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-06-14 19:08
Fixed and backported.
Thanks.
History
Date User Action Args
2022-04-11 14:58:47adminsetgithub: 74844
2017-06-14 19:08:45Mariattasetstatus: open -> closed
resolution: fixed
messages: + msg296025

stage: backport needed -> resolved
2017-06-14 19:07:57Mariattasetmessages: + msg296024
2017-06-14 19:07:44Mariattasetmessages: + msg296023
2017-06-14 18:59:40Mariattasetmessages: + msg296022
2017-06-14 18:58:34Mariattasetpull_requests: + pull_request2241
2017-06-14 18:57:28Mariattasetpull_requests: + pull_request2240
2017-06-14 18:40:49Mariattasetpull_requests: + pull_request2239
2017-06-14 05:26:49serhiy.storchakasetmessages: + msg295988
2017-06-14 05:26:31serhiy.storchakasetmessages: - msg295986
2017-06-14 05:25:26serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg295986
2017-06-14 05:22:49rhettingersetmessages: + msg295985
2017-06-14 05:18:40rhettingersetassignee: docs@python -> rhettinger
2017-06-13 19:21:37Mariattasetstage: backport needed
versions: - Python 3.3, Python 3.4
2017-06-13 19:20:53Mariattasetnosy: + Mariatta
messages: + msg295952
2017-06-13 18:49:23benhoytcreate