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

Function array_tobytes

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

Source from the content-addressed store, hash-verified

595
596
597static PyObject *
598array_tobytes(PyArrayObject *self, PyObject *args, PyObject *kwds)
599{
600 NPY_ORDER order = NPY_CORDER;
601 static char *kwlist[] = {"order", NULL};
602
603 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O&:tobytes", kwlist,
604 PyArray_OrderConverter, &order)) {
605 return NULL;
606 }
607 return PyArray_ToString(self, order);
608}
609
610static PyObject *
611array_tostring(PyArrayObject *self, PyObject *args, PyObject *kwds)

Callers

nothing calls this directly

Calls 1

PyArray_ToStringFunction · 0.85

Tested by

no test coverage detected