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: bisect.bisect/insort don't document key parameter
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Dennis Sweeney, Stefan Pochmann, ZackerySpytz, docs@python, rhettinger
Priority: normal Keywords: patch

Created on 2022-02-14 07:09 by Stefan Pochmann, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 31323 merged ZackerySpytz, 2022-02-14 08:14
PR 31329 merged Dennis Sweeney, 2022-02-14 16:24
Messages (5)
msg413213 - (view) Author: Stefan Pochmann (Stefan Pochmann) * Date: 2022-02-14 07:09
The signatures for the versions without "_right" suffix are missing the key parameter:

bisect.bisect_right(a, x, lo=0, hi=len(a), *, key=None)
bisect.bisect(a, x, lo=0, hi=len(a))¶

bisect.insort_right(a, x, lo=0, hi=len(a), *, key=None)
bisect.insort(a, x, lo=0, hi=len(a))¶

https://docs.python.org/3/library/bisect.html#bisect.bisect_right
https://docs.python.org/3/library/bisect.html#bisect.insort_right
msg413214 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2022-02-14 08:21
Thank you for the report.
msg413230 - (view) Author: Dennis Sweeney (Dennis Sweeney) * (Python committer) Date: 2022-02-14 16:16
New changeset 96084f4256d2d523b0a4d7d900322b032326e3ed by Zackery Spytz in branch 'main':
bpo-46747: Add missing key parameters in the bisect docs (GH-31323)
https://github.com/python/cpython/commit/96084f4256d2d523b0a4d7d900322b032326e3ed
msg413233 - (view) Author: Dennis Sweeney (Dennis Sweeney) * (Python committer) Date: 2022-02-14 16:51
New changeset 841c77d802e9ee8845fa3152700474021efe03fd by Dennis Sweeney in branch '3.10':
[3.10] bpo-46747: Add missing key parameters in the bisect docs (GH-31323) (GH-31329)
https://github.com/python/cpython/commit/841c77d802e9ee8845fa3152700474021efe03fd
msg413234 - (view) Author: Dennis Sweeney (Dennis Sweeney) * (Python committer) Date: 2022-02-14 16:53
Thanks for the report, Stefan!
Thanks for the PR, Zackery!
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 90903
2022-02-14 16:53:01Dennis Sweeneysetstatus: open -> closed
resolution: fixed
messages: + msg413234

stage: patch review -> resolved
2022-02-14 16:51:32Dennis Sweeneysetmessages: + msg413233
2022-02-14 16:24:30Dennis Sweeneysetpull_requests: + pull_request29485
2022-02-14 16:16:59Dennis Sweeneysetnosy: + Dennis Sweeney
messages: + msg413230
2022-02-14 10:16:38AlexWaygoodsetnosy: + rhettinger
type: behavior
2022-02-14 08:21:27ZackerySpytzsetmessages: + msg413214
2022-02-14 08:14:01ZackerySpytzsetkeywords: + patch
nosy: + ZackerySpytz

pull_requests: + pull_request29480
stage: patch review
2022-02-14 07:09:36Stefan Pochmanncreate