Skip to content

BUG: Don't leak internal exceptions when given an empty array#8614

Merged
mhvk merged 1 commit intonumpy:masterfrom
eric-wieser:apply_along_axis-empty
Feb 18, 2017
Merged

BUG: Don't leak internal exceptions when given an empty array#8614
mhvk merged 1 commit intonumpy:masterfrom
eric-wieser:apply_along_axis-empty

Conversation

@eric-wieser
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser commented Feb 13, 2017

Fixes #6927 (and its dupe, #7454)

This was made worse in #8441, which changed the exception from IndexError, which is likely to not be swallowed by user code, to a StopIteration, which would cause silent failure if used inside a generator

@mhvk
Copy link
Copy Markdown
Contributor

mhvk commented Feb 13, 2017

Looks good (I would not have thought of the possibility of a function dealing with empty axis myself!)

@eric-wieser
Copy link
Copy Markdown
Member Author

Good to merge?

@mhvk
Copy link
Copy Markdown
Contributor

mhvk commented Feb 18, 2017

Yes, looks all OK, so merging. Thanks!

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.

3 participants