Skip to content
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

BUG: Keep ignoring most errors during array-protocol lookup #18197

Merged
merged 1 commit into from Jan 21, 2021

Conversation

seberg
Copy link
Member

@seberg seberg commented Jan 20, 2021

Closes (the later point) in gh-17965 and reverts parts of
gh-17817.
Shapely did rely on being able to raise a NotImplementedError
which then got ignored in the attribute lookup.
Arguably, this should probably just raise an AttributeError to
achieve that behaviour, but it means we can't just rip the band-aid
off here.

Since 1.20 is practically released, just reverting most of the change
(leaving only recursion and memory error which are both arguably
pretty fatal).
Ignoring most errors should be deprecated (and I am happy to do so),
but it is not important enough for 1.20 or very important in itself.

Closes gh-17965

Closes (the later point) in numpygh-17965 and reverts parts of
numpygh-17817.
Shapely did rely on being able to raise a NotImplementedError
which then got ignored in the attribute lookup.
Arguably, this should probably just raise an AttributeError to
achieve that behaviour, but it means we can't just rip the band-aid
off here.

Since 1.20 is practically released, just reverting most of the change
(leaving only recursion and memory error which are both arguably
pretty fatal).
Ignoring most errors should be deprecated (and I am happy to do so),
but it is not important enough for 1.20 or very important in itself.

Closes numpygh-17965
@seberg seberg added this to the 1.20.0 release milestone Jan 20, 2021
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Jan 20, 2021
@charris charris merged commit 72be9ca into numpy:master Jan 21, 2021
@charris
Copy link
Member

charris commented Jan 21, 2021

Thanks Sebastian. I assume you will issue a FutureWarning at some point in 1.21 development.

@jorisvandenbossche
Copy link
Contributor

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.20.0 RC: change in array coercion for scalar objects with __array_interface__
3 participants