Issue 30659: Use ** correctly for "kwargs" in signature of namedtuple._replace() (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/74844
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) * ![]() |
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) * ![]() |
Date: 2017-06-14 05:22 |
This looks fine. | ||
msg295988 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2017-06-14 05:26 |
Sorry, wrong issue. | ||
msg296022 - (view) | Author: Mariatta (Mariatta) * ![]() |
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) * ![]() |
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) * ![]() |
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) * ![]() |
Date: 2017-06-14 19:08 |
Fixed and backported. Thanks. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:47 | admin | set | github: 74844 |
2017-06-14 19:08:45 | Mariatta | set | status: open -> closedresolution: fixedmessages: + stage: backport needed -> resolved |
2017-06-14 19:07:57 | Mariatta | set | messages: + |
2017-06-14 19:07:44 | Mariatta | set | messages: + |
2017-06-14 18:59:40 | Mariatta | set | messages: + |
2017-06-14 18:58:34 | Mariatta | set | pull_requests: + <pull%5Frequest2241> |
2017-06-14 18:57:28 | Mariatta | set | pull_requests: + <pull%5Frequest2240> |
2017-06-14 18:40:49 | Mariatta | set | pull_requests: + <pull%5Frequest2239> |
2017-06-14 05:26:49 | serhiy.storchaka | set | messages: + |
2017-06-14 05:26:31 | serhiy.storchaka | set | messages: - |
2017-06-14 05:25:26 | serhiy.storchaka | set | nosy: + serhiy.storchakamessages: + |
2017-06-14 05:22:49 | rhettinger | set | messages: + |
2017-06-14 05🔞40 | rhettinger | set | assignee: docs@python -> rhettinger |
2017-06-13 19:21:37 | Mariatta | set | stage: backport neededversions: - Python 3.3, Python 3.4 |
2017-06-13 19:20:53 | Mariatta | set | nosy: + Mariattamessages: + |
2017-06-13 18:49:23 | benhoyt | create |