10000 BUG: Fix array_equal for numeric and non-numeric scalar types by charris · Pull Request #27278 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

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

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
Aug 26, 2024

Conversation

charris
Copy link
Member
@charris charris commented Aug 26, 2024

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.1.1 release milestone Aug 26, 2024
@charris charris merged commit 8164b7c into numpy:maintenance/2.1.x Aug 26, 2024
65 checks passed
@charris charris deleted the backport-27275 branch August 26, 2024 14:37
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
0