10000 gh-92780: Improve sqlite3.Connection.create_collation docs by erlend-aasland · Pull Request #92790 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92780: Improve sqlite3.Connection.create_collation docs #92790

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
May 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address Alex' review: improve wording
  • Loading branch information
erlend-aasland committed May 15, 2022
commit eb5ee5dd85c509d3eb9d25495dbb2196459d917f
8 changes: 5 additions & 3 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,11 @@ Connection Objects

Create a collation named *name* using the collating function *callable*.
*callable* is passed two :class:`string <str>` arguments,
and it should return 1 if the first is ordered higher than the second,
-1 if the first is ordered lower than the second,
and 0 if they are ordered equal.
and it should return an :class:`int <integer>`:

* ``1`` if the first is ordered higher than the second
* ``-1`` if the first is ordered lower than the second
* ``0`` if they are ordered equal

The following example shows a reverse sorting collation:

Expand Down
0