UFUNC_API*/
| 2751 | |
| 2752 | /*UFUNC_API*/ |
| 2753 | NPY_NO_EXPORT int |
| 2754 | PyUFunc_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 | /* |
nothing calls this directly
no outgoing calls
no test coverage detected