diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-09-05 18:02:04 -0500 |
---|---|---|
committer | Nathaniel J. Smith <njs@pobox.com> | 2017-09-05 16:02:04 -0700 |
commit | cf7ba54953b360905982d346c6376836736090ef (patch) | |
tree | b195362db54d82023796262c31a0e49727dc783e /numpy/add_newdocs.py | |
parent | cb4d8026f0cf5e25a61ecb1deb644656ed3bc3be (diff) | |
download | numpy-cf7ba54953b360905982d346c6376836736090ef.tar.gz |
API: Make ``a.flat.__array__`` return a copy when ``a`` non-contiguous. (#9447)
* API: Make ``a.flat.__array__`` return copy if ``a`` non-contiguous.
Previously an UPDATEIFCOPY array was returned when `a` was
non-contiguous and writeable. Exposing that type of array does not work
well with PyPy as there is no refcount, and hence the writeback never
occurs. The copy in this case is set to non-writable to expose cases
where a writeback was expected. At some future time the copy will be
made writable. See gh-7054 for a discussion of this issue. It is not
expected that this change will affect many people.
Diffstat (limited to 'numpy/add_newdocs.py')
0 files changed, 0 insertions, 0 deletions