Skip to content

Conversation

@charris
Copy link
Member

@charris charris commented Aug 12, 2021

Backport of #19640.

While this makes sense, the implementation here does not actually
work. It is very difficult to actually reach it, but if reached
it just crashes the process, so remove it.

(I am not actually sure why the input needs to be object already
here, that seems to be an issue with the current dispatcher/promotion
special casing object a bit oddly.)


Stumbled/struggled with it for the ufunc reductions refactor, so splitting it out, since it is a bit strange inside that PR.

EDIT: The tests are a bit obscure, so here is a simpler repro:

np.logical_and([True], [False, None], signature="OO->?")

While this makes sense, the implementation here does not actually
work.  It is very difficult to actually reach it, but if reached
it just crashes the process, so remove it.

(I am not actually sure why the input needs to be object already
here, that seems to be an issue with the current dispatcher/promotion
special casing object a bit oddly.)
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Aug 12, 2021
@charris charris added this to the 1.21.2 release milestone Aug 12, 2021
@charris charris merged commit c0de1b9 into numpy:maintenance/1.21.x Aug 12, 2021
@charris charris deleted the backport-19640 branch August 12, 2021 19:46
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