diff options
author | Burlen Loring <bloring@lbl.gov> | 2021-12-28 19:47:45 -0800 |
---|---|---|
committer | Burlen Loring <bloring@lbl.gov> | 2021-12-29 11:48:42 -0800 |
commit | a9299febc1852d3615ac39e88aabb22777120dbb (patch) | |
tree | 1cadc41ed089fa1fcf0434e377d0f6c786e69ece /numpy/array_api/_creation_functions.py | |
parent | 2f41a52d9b2fc70ea2bed6e04de470d854362ccd (diff) | |
download | numpy-a9299febc1852d3615ac39e88aabb22777120dbb.tar.gz |
BUG: array interface PyCapsule reference
With this change numpy holds a reference to the PyCapsule by which the
PyArrayInterface is returned in addition to the object which supplied
it. This lets numpy signal (via the PyCapsule destructor) when it is
finished with the data, which may not be managed by the object which
provided the PyCapsule instance. The old behavior of holding a reference
only to the object which provided the PyCapsule is kept to ensure backward
compatibility.
closes gh-20673
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions