summaryrefslogtreecommitdiff
path: root/numpy/array_api/_searching_functions.py
diff options
context:
space:
mode:
authorBurlen Loring <bloring@lbl.gov>2021-12-28 19:47:45 -0800
committerBurlen Loring <bloring@lbl.gov>2021-12-29 11:48:42 -0800
commita9299febc1852d3615ac39e88aabb22777120dbb (patch)
tree1cadc41ed089fa1fcf0434e377d0f6c786e69ece /numpy/array_api/_searching_functions.py
parent2f41a52d9b2fc70ea2bed6e04de470d854362ccd (diff)
downloadnumpy-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/_searching_functions.py')
0 files changed, 0 insertions, 0 deletions