Skip to content

Pass keyword arguments through in the aliases #11

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 2 commits into from
Jan 7, 2023

Conversation

asmeurer
Copy link
Member

Also make the basic rename functions just aliases instead of wrapper aliases, so that they are still ufuncs.

This removes the overhead for these functions, and also makes it so that they
are still NumPy ufuncs with all the corresponding ufunc keywords and methods.
This allows passing NumPy-specific keyword arguments through, like
asarray(order='F').

This won't work with keyword arguments that are renamed.

This is not done for new functions that aren't in NumPy, like unique_all,
permute_dims, matrix_norm, etc.

Fixes #data-apis#10.
@asmeurer asmeurer merged commit cda03db into data-apis:main Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant