Skip to content

BUG: Fix array_equal for numeric and non-numeric scalar types#27279

Merged
charris merged 1 commit into
numpy:maintenance/2.0.xfrom
charris:backport-27275
Aug 26, 2024
Merged

BUG: Fix array_equal for numeric and non-numeric scalar types#27279
charris merged 1 commit into
numpy:maintenance/2.0.xfrom
charris:backport-27275

Conversation

@charris

@charris charris commented Aug 26, 2024

Copy link
Copy Markdown
Member

Backport of #27275

Mitigates #27271. The underlying issue (an array comparison returning a python bool instead of a numpy bool) is not addressed.

The order of statements is slightly reordered, so that the if a1 is a2: check can be done before the calculation of cannot_have_nan

Closes gh-27271

Backport of numpy#27275

Mitigates numpy#27271. The underlying issue (an array comparison returning a
python bool instead of a numpy bool) is not addressed.

The order of statements is slightly reordered, so that the if
`a1 is a2:` check can be done before the calculation of
`cannot_have_nan`

Closes numpygh-27271
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Aug 26, 2024
@charris charris added this to the 2.0.2 release milestone Aug 26, 2024
@charris charris merged commit 1693029 into numpy:maintenance/2.0.x Aug 26, 2024
@charris charris deleted the backport-27275 branch August 26, 2024 15:28
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