8000 BUG: Make advanced indexing result on read-only subclass writeable by jeremiedbb · Pull Request #14171 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Make advanced indexing result on read-only subclass writeable #14171

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 3 commits into from
Aug 1, 2019

Conversation

jeremiedbb
Copy link
Contributor

Fixes #14132

Fancy indexing on read-only subclass makes a read-only copy. This PR avoids using the flags of the original array.

@seberg seberg changed the title [MRG] Fix fancy indexing on read-only subclass BUG: Fix fancy indexing on read-only subclass Jul 31, 2019
jeremiedbb and others added 2 commits August 1, 2019 12:17
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
@seberg seberg changed the title BUG: Fix fancy indexing on read-only subclass BUG: Make advanced indexing result on read-only subclass writeable Aug 1, 2019
@seberg seberg merged commit 22fe542 into numpy:master Aug 1, 2019
@seberg
Copy link
Member
seberg commented Aug 1, 2019

Thanks @jeremiedbb and Eric.

charris pushed a commit to charris/numpy that referenced this pull request Aug 5, 2019
…umpy#14171)

Fancy indexing on read-only subclass makes a read-only copy. This PR avoids using the flags of the original array.

Fixes numpy#14132

* do not use original array flags in fancy indexing

* Update numpy/core/tests/test_indexing.py

Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 5, 2019
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.

Fancy indexing on read-only memmap creates a read-only copy
4 participants
0