Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BUG: fixes for StringDType/unicode promoters #27673

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
Oct 30, 2024

Conversation

charris
Copy link
Member

@charris charris commented Oct 30, 2024

Backport of #27636.

Fixes #27493. Fixes #27637.

There are a number of missing cases for mixed unicode/string operations that this adds promoters for. Also adds tests for these cases.

Additionally replaces uses of Py_None as an abstract promoter target with PyArray_IntAbstractDType, which makes the promoters fire less offten in unintended cases and is closer to the intention in the code.

Also fixes issues with the python wrappers for the string ufuncs incorrectly selecting the fixed-width string branches for some signatures by relying on np.result_type to check for StringDType inputs.

@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Oct 30, 2024
@charris charris added this to the 2.1.3 release milestone Oct 30, 2024
@charris charris merged commit 614ca19 into numpy:maintenance/2.1.x Oct 30, 2024
65 checks passed
@charris charris deleted the backport-27636 branch October 30, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.