NUMPY_API * Return the policy that will be used to allocate data * for the next PyArrayObject. On failure, return NULL. */
| 557 | * for the next PyArrayObject. On failure, return NULL. |
| 558 | */ |
| 559 | NPY_NO_EXPORT PyObject * |
| 560 | PyDataMem_GetHandler() |
| 561 | { |
| 562 | PyObject *handler; |
| 563 | if (PyContextVar_Get(current_handler, NULL, &handler)) { |
| 564 | return NULL; |
| 565 | } |
| 566 | return handler; |
| 567 | } |
| 568 | |
| 569 | NPY_NO_EXPORT PyObject * |
| 570 | get_handler_name(PyObject *NPY_UNUSED(self), PyObject *args) |
no outgoing calls
no test coverage detected