MCPcopy Create free account
hub / github.com/apache/arrow / ~NumPyBuffer

Method ~NumPyBuffer

python/pyarrow/src/arrow/python/numpy_convert.cc:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55NumPyBuffer::~NumPyBuffer() {
56 // GH-38626: destructor may be called after the Python interpreter is finalized.
57 if (Py_IsInitialized()) {
58 PyAcquireGIL lock;
59 Py_XDECREF(arr_);
60 }
61}
62
63#define TO_ARROW_TYPE_CASE(NPY_NAME, FACTORY) \
64 case NPY_##NPY_NAME: \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected