Skip to content

BUG: Ensure __array_ufunc__ works without any kwargs passed#24031

Merged
seberg merged 1 commit intonumpy:mainfrom
seberg:array-ufunc-no-kwargs
Jun 24, 2023
Merged

BUG: Ensure __array_ufunc__ works without any kwargs passed#24031
seberg merged 1 commit intonumpy:mainfrom
seberg:array-ufunc-no-kwargs

Conversation

@seberg
Copy link
Member

@seberg seberg commented Jun 23, 2023

This doesn't happen in practice unless the function is manually called, and even then probably never because users should be passing **kwargs ensuring there is a dict passed...


Closes gh-24023

This doesn't happen in practice unless the function is manually
called, and even then probably never because users should be
passing `**kwargs` ensuring there is a dict passed...
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Jun 23, 2023
Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

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

Looks good! I guess this was introduced in the change to fast call?

@seberg
Copy link
Member Author

seberg commented Jun 24, 2023

Didn't check, might also have always been there.

@mhvk
Copy link
Contributor

mhvk commented Jun 24, 2023

The failure isn't there on 1.24.2, so it must be something recent. Anyway, in the end I guess it doesn't matter, this fix looks right.

@seberg
Copy link
Member Author

seberg commented Jun 24, 2023

Ah, if it's a regression it must have been part of adding where. Well an approval is good enough for this.

@seberg seberg merged commit 0e2af84 into numpy:main Jun 24, 2023
@seberg seberg deleted the array-ufunc-no-kwargs branch June 24, 2023 15:29
@charris charris changed the title BUG: Ensure __array_ufunc__ works without any kwargs passed BUG: Ensure __array_ufunc__ works without any kwargs passed Jun 24, 2023
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Segfault When __array_ufunc__ Called With Garbage

3 participants