8000 BUG: fix fromfile behavior when reading sub-array dtypes by pv · Pull Request #14657 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix fromfile behavior when reading sub-array dtypes #14657

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 2 commits into from
Oct 10, 2019

Conversation

pv
Copy link
Member
@pv pv commented Oct 7, 2019

Restore previous behavior of fromfile, by ensuring the original dtype is
used for reading, instead of the type of the created array which may
have sub-arrays collapsed.

Reverts parts of 454c5b5

Closes: gh-14646

Restore previous behavior of fromfile, by ensuring the original dtype is
used for reading, instead of the type of the created array which may
have sub-arrays collapsed.

Reverts parts of 454c5b5
@seberg
Copy link
Member
seberg commented Oct 7, 2019

Thanks, the second part of the test causes a use after free/decref, another old bug that was simply not covered. I will have a look at it probably later today.

@seberg
Copy link
Member
seberg commented Oct 8, 2019

I pushed a followup, we can squash.

@mattip
Copy link
Member
mattip commented Oct 10, 2019

LGTM, and does not regress #14586 to print the refcount errors.

@mattip mattip merged commit d235f37 into numpy:master Oct 10, 2019
@pv
Copy link
Member Author
pv commented Oct 10, 2019

Thanks! (Eventually green scipy CI :)

@charris
Copy link
Member
charris commented Oct 10, 2019

@pv I'll generate another set of testing wheels, I was waiting for this PR to go in.

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

Successfully merging this pull request may close these issues.

BUG: fromfile with subarray dtypes is broken
4 participants
0