| 608 | } |
| 609 | |
| 610 | static PyObject * |
| 611 | array_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 */ |
| 628 | static int |
nothing calls this directly
no test coverage detected