summaryrefslogtreecommitdiffstats
path: root/Lib/bisect.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2023-03-25 07:19:20 (GMT)
committerGitHub <noreply@github.com>2023-03-25 07:19:20 (GMT)
commit1fd603fad20187496619930e5b74aa7690425926 (patch)
treee37bf279224d9ff30502c5db381fba8a5329e92d /Lib/bisect.py
parent87adc63d66349566b6459f93be60861b9d37782f (diff)
downloadcpython-1fd603fad20187496619930e5b74aa7690425926.zip
cpython-1fd603fad20187496619930e5b74aa7690425926.tar.gz
cpython-1fd603fad20187496619930e5b74aa7690425926.tar.bz2
GH-102833: Mention the key function in the docstrings (GH-103009)
Diffstat (limited to 'Lib/bisect.py')
-rw-r--r--Lib/bisect.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/bisect.py b/Lib/bisect.py
index d37da74..ca6ca72 100644
--- a/Lib/bisect.py
+++ b/Lib/bisect.py
@@ -8,6 +8,8 @@ def insort_right(a, x, lo=0, hi=None, *, key=None):
Optional args lo (default 0) and hi (default len(a)) bound the
slice of a to be searched.
+
+ A custom key function can be supplied to customize the sort order.
"""
if key is None:
lo = bisect_right(a, x, lo, hi)
@@ -25,6 +27,8 @@ def bisect_right(a, x, lo=0, hi=None, *, key=None):
Optional args lo (default 0) and hi (default len(a)) bound the
slice of a to be searched.
+
+ A custom key function can be supplied to customize the sort order.
"""
if lo < 0:
@@ -57,6 +61,8 @@ def insort_left(a, x, lo=0, hi=None, *, key=None):
Optional args lo (default 0) and hi (default len(a)) bound the
slice of a to be searched.
+
+ A custom key function can be supplied to customize the sort order.
"""
if key is None:
@@ -74,6 +80,8 @@ def bisect_left(a, x, lo=0, hi=None, *, key=None):
Optional args lo (default 0) and hi (default len(a)) bound the
slice of a to be searched.
+
+ A custom key function can be supplied to customize the sort order.
"""
if lo < 0: