mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46747: Add missing key parameters in the bisect docs (GH-31323)
Added *key* parameter to `bisect.bisect()` and `bisect.insort()` in bisect module docs.
This commit is contained in:
parent
0ade875ebe
commit
96084f4256
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ The following functions are provided:
|
|||
|
||||
|
||||
.. function:: bisect_right(a, x, lo=0, hi=len(a), *, key=None)
|
||||
bisect(a, x, lo=0, hi=len(a))
|
||||
bisect(a, x, lo=0, hi=len(a), *, key=None)
|
||||
|
||||
Similar to :func:`bisect_left`, but returns an insertion point which comes
|
||||
after (to the right of) any existing entries of *x* in *a*.
|
||||
|
@ -80,7 +80,7 @@ The following functions are provided:
|
|||
|
||||
|
||||
.. function:: insort_right(a, x, lo=0, hi=len(a), *, key=None)
|
||||
insort(a, x, lo=0, hi=len(a))
|
||||
insort(a, x, lo=0, hi=len(a), *, key=None)
|
||||
|
||||
Similar to :func:`insort_left`, but inserting *x* in *a* after any existing
|
||||
entries of *x*.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue