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

Function PyArray_Dumps

numpy/core/src/multiarray/methods.c:2333–2347  ·  view source on GitHub ↗

NUMPY_API*/

Source from the content-addressed store, hash-verified

2331
2332/*NUMPY_API*/
2333NPY_NO_EXPORT PyObject *
2334PyArray_Dumps(PyObject *self, int protocol)
2335{
2336 static PyObject *method = NULL;
2337 npy_cache_import("numpy.core._methods", "_dumps", &method);
2338 if (method == NULL) {
2339 return NULL;
2340 }
2341 if (protocol < 0) {
2342 return PyObject_CallFunction(method, "O", self);
2343 }
2344 else {
2345 return PyObject_CallFunction(method, "Oi", self, protocol);
2346 }
2347}
2348
2349
2350static PyObject *

Callers

nothing calls this directly

Calls 1

npy_cache_importFunction · 0.85

Tested by

no test coverage detected