diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-08-11 16:01:48 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-10-30 22:36:24 -0700 |
commit | f2d8aabaf99bc2c460968d64aec67ae2570726bd (patch) | |
tree | 59ca29177191ff6be96eaa1469a3ee2c6da68cce /numpy/lib/tests/test_function_base.py | |
parent | 7a0950649db5b83a881d8fb2bf8f95fdd885e081 (diff) | |
download | numpy-f2d8aabaf99bc2c460968d64aec67ae2570726bd.tar.gz |
BUG: Make `arr.ctypes.data` hold onto a reference to the underlying array
We do this by going through ctypes.from_buffer, which keeps the object the buffer came from alive.
A bunch of hacks are required to produce a sufficiently simple buffer for ctypes to accept.
Fixes #9647
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions