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

Function array_tostring

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

Source from the content-addressed store, hash-verified

608}
609
610static PyObject *
611array_tostring(PyArrayObject *self, PyObject *args, PyObject *kwds)
612{
613 NPY_ORDER order = NPY_CORDER;
614 static char *kwlist[] = {"order", NULL};
615
616 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O&:tostring", kwlist,
617 PyArray_OrderConverter, &order)) {
618 return NULL;
619 }
620 /* 2020-03-30, NumPy 1.19 */
621 if (DEPRECATE("tostring() is deprecated. Use tobytes() instead.") < 0) {
622 return NULL;
623 }
624 return PyArray_ToString(self, order);
625}
626
627/* Like PyArray_ToFile but takes the file as a python object */
628static int

Callers

nothing calls this directly

Calls 1

PyArray_ToStringFunction · 0.85

Tested by

no test coverage detected