diff options
author | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-09 23:29:48 +0900 |
---|---|---|
committer | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-09 23:29:48 +0900 |
commit | 93c5380d089493325eab3ec50f6c97e9e598fd36 (patch) | |
tree | 2cff2ff3ed5b1a87ad10be95504032c89097c399 | |
parent | de75ba0c42cd117f8d77989f39ac80e688040cac (diff) | |
download | numpy-93c5380d089493325eab3ec50f6c97e9e598fd36.tar.gz |
BUG: Fix scalar-tostring so that it can receive keyword arguments
-rw-r--r-- | numpy/core/src/multiarray/scalartypes.c.src | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/multiarray/scalartypes.c.src b/numpy/core/src/multiarray/scalartypes.c.src index a2d6d90fe..fdf64f1f6 100644 --- a/numpy/core/src/multiarray/scalartypes.c.src +++ b/numpy/core/src/multiarray/scalartypes.c.src @@ -1529,7 +1529,7 @@ gentype_wraparray(PyObject *NPY_UNUSED(scalar), PyObject *args) */ /**begin repeat * - * #name = tolist, item, tostring, tobytes, copy, __deepcopy__, + * #name = tolist, item, tobytes, copy, __deepcopy__, * searchsorted, view, swapaxes, conj, conjugate, nonzero, flatten, * ravel, fill, transpose, newbyteorder# */ @@ -1609,7 +1609,7 @@ gentype_byteswap(PyObject *self, PyObject *args, PyObject *kwds) * #name = take, getfield, put, repeat, tofile, mean, trace, diagonal, clip, * std, var, sum, cumsum, prod, cumprod, compress, sort, argsort, * round, argmax, argmin, max, min, ptp, any, all, astype, resize, - * reshape, choose# + * reshape, choose, tostring# */ static PyObject * gentype_@name@(PyObject *self, PyObject *args, PyObject *kwds) @@ -1879,7 +1879,7 @@ static PyMethodDef gentype_methods[] = { METH_VARARGS | METH_KEYWORDS, NULL}, {"tostring", (PyCFunction)gentype_tostring, - METH_VARARGS, NULL}, + METH_VARARGS | METH_KEYWORDS, NULL}, {"byteswap", (PyCFunction)gentype_byteswap, METH_VARARGS | METH_KEYWORDS, NULL}, |