Skip to content

Commit 841c77d

Browse files
[3.10] bpo-46747: Add missing key parameters in the bisect docs (GH-31323) (GH-31329)
Added *key* parameter to `bisect.bisect()` and `bisect.insort()` in bisect module docs. (cherry picked from commit 96084f4) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 6a7dd3f commit 841c77d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/bisect.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following functions are provided:
4343

4444

4545
.. function:: bisect_right(a, x, lo=0, hi=len(a), *, key=None)
46-
bisect(a, x, lo=0, hi=len(a))
46+
bisect(a, x, lo=0, hi=len(a), *, key=None)
4747
4848
Similar to :func:`bisect_left`, but returns an insertion point which comes
4949
after (to the right of) any existing entries of *x* in *a*.
@@ -80,7 +80,7 @@ The following functions are provided:
8080

8181

8282
.. function:: insort_right(a, x, lo=0, hi=len(a), *, key=None)
83-
insort(a, x, lo=0, hi=len(a))
83+
insort(a, x, lo=0, hi=len(a), *, key=None)
8484
8585
Similar to :func:`insort_left`, but inserting *x* in *a* after any existing
8686
entries of *x*.

0 commit comments

Comments
 (0)