GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — ENH: implement descending sorts for StringDType by ngoldbaum · Pull Request #32286 · numpy/numpy Conversation
Member
PR summaryThis implements support for descending sorts, following #31431 and #31345 Pretty straightforward! Mostly this is wiring things up. Ping @MaanasArora I'd appreciate your opinion here. AI DisclosureI used an AI to help with the test and review my code.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
MaanasArora
approved these changes
|
|
@MaanasArora thanks for the suggestion! I think this is simpler, let me know what you think. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
it turns out if you add a second release note with the same content as the first, towncrier generates a single entry that references both PRs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| switch (sort_params->flags) { | ||
| if (cmp == NULL) { | ||
| npy_gil_error(PyExc_ValueError, | ||
| "descending sort not supported for this DType"); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can this not be ascending too?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @ngoldbaum, yes this looks great! Just an error handling change inline. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks, LGTM now - will merge when CI passes! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.