summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-04-11 10:34:11 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2022-04-11 12:52:19 -0700
commit622ca4874f229c83b75746ca5ef7ef9e8a536ea2 (patch)
tree10cade3d02a0835f979e8dd07caa3bcc8cec292c /numpy/array_api/_array_object.py
parentaed6c57f7fa7343a637c4373ca4624389472827a (diff)
downloadnumpy-622ca4874f229c83b75746ca5ef7ef9e8a536ea2.tar.gz
BUG: Make mmap handling safer in frombuffer
`frombuffer` always used the old buffer protocol, but this is not safe in some cases when combined with the "new" one. The main/only use-case that was ever found for this is that enabling the new buffer protocol (by going through a memoryview) protects users from accidentally closing memorymaps while they are still used. Closes gh-9537
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions