MCPcopy Create free account
hub / github.com/apache/arrow / PyCapsule_IsValid

Function PyCapsule_IsValid

python/pyarrow/tests/test_dlpack.py:32–33  ·  view source on GitHub ↗
(capsule, name)

Source from the content-addressed store, hash-verified

30
31
32def PyCapsule_IsValid(capsule, name):
33 return ctypes.pythonapi.PyCapsule_IsValid(ctypes.py_object(capsule), name) == 1
34
35
36def check_dlpack_export(arr, expected_arr):

Callers 1

check_dlpack_exportFunction · 0.70

Calls 1

py_objectMethod · 0.80

Tested by

no test coverage detected