Skip to content

Simplify registartion of methods in ndarray #118

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 4 commits into from
Apr 21, 2023
Merged

Simplify registartion of methods in ndarray #118

merged 4 commits into from
Apr 21, 2023

Conversation

lezcano
Copy link
Collaborator

@lezcano lezcano commented Apr 19, 2023

This PR makes the registration of methods in ndarray uniform. It also corrects their __name__ and __qualname__ attributes.

While doing this, we fix many r-looking dunder methods that were not correctly implemented see e.g.
#2 (comment). We also add the variants of divmod, which were missing.

This PR makes the registration of methods in `ndarray` uniform.
It also corrects their `__name__` and `__qualname__` attributes.

While doing this, we fix many r-looking dunder methods that were
not correctly implemented see e.g.
#2 (comment).
We also add the variants of `divmod`, which were missing.
@lezcano lezcano requested a review from ev-br April 19, 2023 14:42
Copy link
Collaborator

@ev-br ev-br left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lezcano lezcano merged commit 5be250a into main Apr 21, 2023
@lezcano lezcano deleted the dunder branch April 21, 2023 10:14
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.

2 participants