8000 Improvements to the bisect docs by rhettinger · Pull Request #95807 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Improvements to the bisect docs #95807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 9, 2022
Merged

Conversation

rhettinger
Copy link
Contributor
* Clarify the differences from tools like bsearch() in C.
* Document that ``__lt__`` is called instead of ``__eq__``.
* Refer to the partitions as "slices" instead of "halves".
* Make the invariants more readable with better variable names.
* Eliminate redundant text in bisect_right(), noting only the
  differences from bisect_left().

* Clarify the differences from tools like bsearch() in C.
* Document that ``__lt__`` is called instead of ``__eq__``.
* Refer to the partitions as "slices" instead of "halves".
* Make the invariants more readable with a better variable name.
* Eliminate redundant text in bisect_right(), noting only the
  differences from bisect_left().
@bedevere-bot bedevere-bot added docs Documentation in the Doc dir skip news awaiting core review labels Aug 9, 2022
@rhettinger rhettinger merged commit 7c8626a into python:main Aug 9, 2022
@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-95811 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 9, 2022
(cherry picked from commit 7c8626a)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0