diff options
author | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-07 21:42:34 +0900 |
---|---|---|
committer | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-07 21:42:34 +0900 |
commit | de75ba0c42cd117f8d77989f39ac80e688040cac (patch) | |
tree | 7546cbab45718847359a323b6cdd7b806efac37d | |
parent | 91b06c021319faccb008a8ee485d26ae227bf079 (diff) | |
download | numpy-de75ba0c42cd117f8d77989f39ac80e688040cac.tar.gz |
BUG: Fix scalar-astype so that it can receive keyword arguments
-rw-r--r-- | numpy/core/src/multiarray/scalartypes.c.src | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/src/multiarray/scalartypes.c.src b/numpy/core/src/multiarray/scalartypes.c.src index cc867fe04..a2d6d90fe 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, astype, copy, __deepcopy__, + * #name = tolist, item, tostring, tobytes, copy, __deepcopy__, * searchsorted, view, swapaxes, conj, conjugate, nonzero, flatten, * ravel, fill, transpose, newbyteorder# */ @@ -1608,8 +1608,8 @@ 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, resize, reshape, - * choose# + * round, argmax, argmin, max, min, ptp, any, all, astype, resize, + * reshape, choose# */ static PyObject * gentype_@name@(PyObject *self, PyObject *args, PyObject *kwds) @@ -1885,7 +1885,7 @@ static PyMethodDef gentype_methods[] = { METH_VARARGS | METH_KEYWORDS, NULL}, {"astype", (PyCFunction)gentype_astype, - METH_VARARGS, NULL}, + METH_VARARGS | METH_KEYWORDS, NULL}, {"getfield", (PyCFunction)gentype_getfield, METH_VARARGS | METH_KEYWORDS, NULL}, |