diff options
author | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-10 08:40:23 +0900 |
---|---|---|
committer | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-10 08:40:23 +0900 |
commit | 3adf80ea81e605bbc6e021e0f741d2e6cd58cd74 (patch) | |
tree | 05165b83333e694895bd2bde793dd47066d31cb7 | |
parent | eeae3c55591139ee2e7907d43a0ef8bbecaeafed (diff) | |
download | numpy-3adf80ea81e605bbc6e021e0f741d2e6cd58cd74.tar.gz |
BUG: Fix scalar-ravel 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 33ede5ad2..9815ff00b 100644 --- a/numpy/core/src/multiarray/scalartypes.c.src +++ b/numpy/core/src/multiarray/scalartypes.c.src @@ -1531,7 +1531,7 @@ gentype_wraparray(PyObject *NPY_UNUSED(scalar), PyObject *args) * * #name = tolist, item, __deepcopy__, * swapaxes, conj, conjugate, nonzero, - * ravel, fill, transpose, newbyteorder# + * fill, transpose, newbyteorder# */ static PyObject * gentype_@name@(PyObject *self, PyObject *args) @@ -1610,7 +1610,7 @@ gentype_byteswap(PyObject *self, PyObject *args, PyObject *kwds) * std, var, sum, cumsum, prod, cumprod, compress, sort, argsort, * round, argmax, argmin, max, min, ptp, any, all, astype, resize, * reshape, choose, tostring, tobytes, copy, searchsorted, view, - * flatten# + * flatten, ravel# */ static PyObject * gentype_@name@(PyObject *self, PyObject *args, PyObject *kwds) @@ -2042,7 +2042,7 @@ static PyMethodDef gentype_methods[] = { METH_VARARGS | METH_KEYWORDS, NULL}, {"ravel", (PyCFunction)gentype_ravel, - METH_VARARGS, NULL}, + METH_VARARGS | METH_KEYWORDS, NULL}, {"round", (PyCFunction)gentype_round, METH_VARARGS | METH_KEYWORDS, NULL}, |