Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked frompython/cpython

Commit2b53c76

Browse files
authored
pythongh-101100: Fix Sphinx warnings inlibrary/bisect.rst (python#113496)
1 parent4e67644 commit2b53c76

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

‎Doc/library/bisect.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ linear searches or frequent resorting.
1919
The module is called:mod:`bisect` because it uses a basic bisection
2020
algorithm to do its work. Unlike other bisection tools that search for a
2121
specific value, the functions in this module are designed to locate an
22-
insertion point. Accordingly, the functions never call an:meth:`__eq__`
22+
insertion point. Accordingly, the functions never call an:meth:`~object.__eq__`
2323
method to determine whether a value has been found. Instead, the
24-
functions only call the:meth:`__lt__` method and will return an insertion
24+
functions only call the:meth:`~object.__lt__` method and will return an insertion
2525
point between values in an array.
2626

2727
.. _bisect functions:
@@ -73,7 +73,7 @@ The following functions are provided:
7373
Insert *x* in *a* in sorted order.
7474

7575
This function first runs:py:func:`~bisect.bisect_left` to locate an insertion point.
76-
Next, it runs the:meth:`insert` method on *a* to insert *x* at the
76+
Next, it runs the:meth:`!insert` method on *a* to insert *x* at the
7777
appropriate position to maintain sort order.
7878

7979
To support inserting records in a table, the *key* function (if any) is
@@ -93,7 +93,7 @@ The following functions are provided:
9393
entries of *x*.
9494

9595
This function first runs:py:func:`~bisect.bisect_right` to locate an insertion point.
96-
Next, it runs the:meth:`insert` method on *a* to insert *x* at the
96+
Next, it runs the:meth:`!insert` method on *a* to insert *x* at the
9797
appropriate position to maintain sort order.
9898

9999
To support inserting records in a table, the *key* function (if any) is

‎Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Doc/library/asyncio-policy.rst
3131
Doc/library/asyncio-subprocess.rst
3232
Doc/library/asyncio-task.rst
3333
Doc/library/bdb.rst
34-
Doc/library/bisect.rst
3534
Doc/library/calendar.rst
3635
Doc/library/cmd.rst
3736
Doc/library/collections.rst

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp