| 510 | |
| 511 | |
| 512 | static PyObject * |
| 513 | boundarraymethod_repr(PyBoundArrayMethodObject *self) |
| 514 | { |
| 515 | int nargs = self->method->nin + self->method->nout; |
| 516 | PyObject *dtypes = PyArray_TupleFromItems( |
| 517 | nargs, (PyObject **)self->dtypes, 0); |
| 518 | if (dtypes == NULL) { |
| 519 | return NULL; |
| 520 | } |
| 521 | PyObject *repr = PyUnicode_FromFormat( |
| 522 | "<np._BoundArrayMethod `%s` for dtypes %S>", |
| 523 | self->method->name, dtypes); |
| 524 | Py_DECREF(dtypes); |
| 525 | return repr; |
| 526 | } |
| 527 | |
| 528 | |
| 529 | static void |
nothing calls this directly
no test coverage detected