Skip to content

BUG: Fix searchsorted and CheckFromAny byte-swapping logic #28435

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 1 commit into from
Mar 6, 2025

Conversation

charris
Copy link
Member

@charris charris commented Mar 5, 2025

Backport of #28418.

  • BUG: Fix searchsorted and CheckFromAny byte-swapping logic

This closes gh-28190 and fixes another issue in the initial code that triggered the regression.

Note that we may still want to avoid this, since this does lead to constructing (view compatible) structured dtypes unnecessarily here.

It would also compactify the dtype. For building unnecessary dtypes, the better solution may be to just introduce a "canonical" flag to the dtypes (now that we have the space).

  • STY: Adopt code comment suggestions

* BUG: Fix searchsorted and CheckFromAny byte-swapping logic

This closes numpygh-28190 and fixes another issue in the initial code
that triggered the regression.

Note that we may still want to avoid this, since this does lead to
constructing (view compatible) structured dtypes unnecessarily here.

It would also compactify the dtype.  For building unnecessary dtypes,
the better solution may be to just introduce a "canonical" flag to
the dtypes (now that we have the space).

* STY: Adopt code comment suggestions
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Mar 5, 2025
@charris charris added this to the 2.2.4 release milestone Mar 5, 2025
@charris charris merged commit 17678bf into numpy:maintenance/2.2.x Mar 6, 2025
70 checks passed
@charris charris deleted the backport-28418 branch March 6, 2025 01:16
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