* Calls __array_function__ on the provided argument, with a fast-path for * ndarray. */
| 190 | * ndarray. |
| 191 | */ |
| 192 | static PyObject * |
| 193 | call_array_function(PyObject* argument, PyObject* method, |
| 194 | PyObject* public_api, PyObject* types, |
| 195 | PyObject* args, PyObject* kwargs) |
| 196 | { |
| 197 | if (is_default_array_function(method)) { |
| 198 | return array_function_method_impl(public_api, types, args, kwargs); |
| 199 | } |
| 200 | else { |
| 201 | return PyObject_CallFunctionObjArgs( |
| 202 | method, argument, public_api, types, args, kwargs, NULL); |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | |
| 207 |
no test coverage detected