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

Skip to content

BUG: Make advanced indexing result on read-only subclass writeable (#… #14201

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 1 commit into from
Aug 5, 2019

Conversation

charris
Copy link
Member
@charris charris commented Aug 5, 2019

Backport of #14171 .

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

Fixes #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

…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 added this to the 1.17.1 release milestone Aug 5, 2019
@charris charris merged commit d66efcd into numpy:maintenance/1.17.x Aug 5, 2019
@charris charris deleted the backport-14171 branch August 5, 2019 15:34
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.

2 participants
0