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

Function PyUFunc_GenericFunction

numpy/core/src/umath/ufunc_object.c:2753–2765  ·  view source on GitHub ↗

UFUNC_API*/

Source from the content-addressed store, hash-verified

2751
2752/*UFUNC_API*/
2753NPY_NO_EXPORT int
2754PyUFunc_GenericFunction(PyUFuncObject *NPY_UNUSED(ufunc),
2755 PyObject *NPY_UNUSED(args), PyObject *NPY_UNUSED(kwds),
2756 PyArrayObject **NPY_UNUSED(op))
2757{
2758 /* NumPy 1.21, 2020-03-29 */
2759 PyErr_SetString(PyExc_RuntimeError,
2760 "The `PyUFunc_GenericFunction()` C-API function has been disabled. "
2761 "Please use `PyObject_Call(ufunc, args, kwargs)`, which has "
2762 "identical behaviour but allows subclass and `__array_ufunc__` "
2763 "override handling and only returns the normal ufunc result.");
2764 return -1;
2765}
2766
2767
2768/*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected