summaryrefslogtreecommitdiffstats
path: root/Doc/library/bisect.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-26 21:54:02 (GMT)
committerGitHub <noreply@github.com>2023-12-26 21:54:02 (GMT)
commit356f59677ed032bfe01af90c7f0e448ba382e990 (patch)
tree56d60652ee7f4f1f53a8f0089151f41a59433d88 /Doc/library/bisect.rst
parenta3f53a006cb10f41abf0839a73594d056dd76953 (diff)
downloadcpython-356f59677ed032bfe01af90c7f0e448ba382e990.zip
cpython-356f59677ed032bfe01af90c7f0e448ba382e990.tar.gz
cpython-356f59677ed032bfe01af90c7f0e448ba382e990.tar.bz2
[3.12] gh-101100: Fix Sphinx warnings in `library/bisect.rst` (GH-113496) (#113504)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Doc/library/bisect.rst')
-rw-r--r--Doc/library/bisect.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst
index 8022c59..c092309 100644
--- a/Doc/library/bisect.rst
+++ b/Doc/library/bisect.rst
@@ -19,9 +19,9 @@ linear searches or frequent resorting.
The module is called :mod:`bisect` because it uses a basic bisection
algorithm to do its work. Unlike other bisection tools that search for a
specific value, the functions in this module are designed to locate an
-insertion point. Accordingly, the functions never call an :meth:`__eq__`
+insertion point. Accordingly, the functions never call an :meth:`~object.__eq__`
method to determine whether a value has been found. Instead, the
-functions only call the :meth:`__lt__` method and will return an insertion
+functions only call the :meth:`~object.__lt__` method and will return an insertion
point between values in an array.
.. _bisect functions:
@@ -73,7 +73,7 @@ The following functions are provided:
Insert *x* in *a* in sorted order.
This function first runs :py:func:`~bisect.bisect_left` to locate an insertion point.
- Next, it runs the :meth:`insert` method on *a* to insert *x* at the
+ Next, it runs the :meth:`!insert` method on *a* to insert *x* at the
appropriate position to maintain sort order.
To support inserting records in a table, the *key* function (if any) is
@@ -93,7 +93,7 @@ The following functions are provided:
entries of *x*.
This function first runs :py:func:`~bisect.bisect_right` to locate an insertion point.
- Next, it runs the :meth:`insert` method on *a* to insert *x* at the
+ Next, it runs the :meth:`!insert` method on *a* to insert *x* at the
appropriate position to maintain sort order.
To support inserting records in a table, the *key* function (if any) is