MCPcopy Create free account
hub / github.com/numpy/numpy / PyDataMem_GetHandler

Function PyDataMem_GetHandler

numpy/core/src/multiarray/alloc.c:559–567  ·  view source on GitHub ↗

NUMPY_API * Return the policy that will be used to allocate data * for the next PyArrayObject. On failure, return NULL. */

Source from the content-addressed store, hash-verified

557 * for the next PyArrayObject. On failure, return NULL.
558 */
559NPY_NO_EXPORT PyObject *
560PyDataMem_GetHandler()
561{
562 PyObject *handler;
563 if (PyContextVar_Get(current_handler, NULL, &handler)) {
564 return NULL;
565 }
566 return handler;
567}
568
569NPY_NO_EXPORT PyObject *
570get_handler_name(PyObject *NPY_UNUSED(self), PyObject *args)

Callers 6

array_setstateFunction · 0.85
get_handler_nameFunction · 0.85
get_handler_versionFunction · 0.85
PyArray_NewFromDescr_intFunction · 0.85
_new_sortlikeFunction · 0.85
_new_argsortlikeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected