Skip to content

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

Merged
charris merged 1 commit intonumpy:maintenance/2.2.xfrom
charris:backport-28418
Mar 6, 2025
Merged

BUG: Fix searchsorted and CheckFromAny byte-swapping logic#28435
charris merged 1 commit intonumpy:maintenance/2.2.xfrom
charris:backport-28418

Conversation

@charris
Copy link
Copy Markdown
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