Skip to content

ENH: Add registration for sorting loops using new ufunc convenience function#29900

Merged
mhvk merged 4 commits intonumpy:mainfrom
MaanasArora:enh/user-sort-registrations
Oct 12, 2025
Merged

ENH: Add registration for sorting loops using new ufunc convenience function#29900
mhvk merged 4 commits intonumpy:mainfrom
MaanasArora:enh/user-sort-registrations

Conversation

@MaanasArora
Copy link
Copy Markdown
Contributor

Follows #29737 to actually add the registration for the new-style sorts and argsorts. This is done using a PyUFunc_AddLoopsFromSpecs convenience function that can accept multiple ufunc names and arraymethod specs using slots, special-casing the "sort" and "argsort" names. The sfloat test is updated to use this registration.

Thanks for reviewing!

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

01 - Enhancement 63 - C API Changes or additions to the C API. Mailing list should usually be notified.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants