-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Sorting documentation fixups for 1.9 #48440
Conversation
In particular: * document the `order` keyword in `sort!` * list explicitly the required properties of `lt` in `sort!` * clarify the sequence of "by" transformations if both `by` and `order` are given * show default values in the signatures for `searchsorted` and related functions * add `isunordered` to the manual (it's already exported)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Note that this doesn't include any of my changes (except for two typo fixes) since they're all reverted by 23178f7 (which is totally fine with me, I'm just mentioning it in case the whole revert was done unintentionally).
I reverted anything that I felt could plausibly be objectionable so that we can merge this more easily and take a bit of the diff off the table when discussing the remaining PRs |
- Fix typos - Clarify that ! means mutation, not "in-place-ness". This should be backported because sort! is even less in place in 1.9 than it already was in 1.8. - Rewrite the section on default policy to reflect the new default policy - Move examples and extended description of previously default sorting algorithms out of sort.md and into their respective docstrings (still rendered in sort.md) Co-authored-by: Jeremie Knuesel <[email protected]> (cherry picked from commit a1c4d85)
Cherrypicks changes that should be backported to 1.9 from #48387 and #48363.
Part of an effort to break up those two PRs into smaller chunks so that they can merge more easily, starting with backports so that the backporting process can be more automatic.
!
means mutation, not "in-place-ness". This should be backported becausesort!
is even less in place in 1.9 than it already was in 1.8.Requesting review from @knuesel, an author of some of these changes.
This is intended to update the documentation for everything that changed in 1.9 and therefore fixes #47789