diff options
author | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-10 08:32:38 +0900 |
---|---|---|
committer | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-10 08:32:38 +0900 |
commit | 1e7970a767123fef134e53cb7cd5b985d21273ad (patch) | |
tree | 5fba489d23c79eadb575c39db6eea408c38157b8 /numpy | |
parent | 4520ed2faf915e62252e64dcbecc5600b8d8affd (diff) | |
download | numpy-1e7970a767123fef134e53cb7cd5b985d21273ad.tar.gz |
BUG: Fix scalar-searchsorted so that it can receive keyword arguments
Diffstat (limited to 'numpy')
-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 7a3540901..27eafbc3d 100644 --- a/numpy/core/src/multiarray/scalartypes.c.src +++ b/numpy/core/src/multiarray/scalartypes.c.src @@ -1530,7 +1530,7 @@ gentype_wraparray(PyObject *NPY_UNUSED(scalar), PyObject *args) /**begin repeat * * #name = tolist, item, __deepcopy__, - * searchsorted, view, swapaxes, conj, conjugate, nonzero, flatten, + * view, swapaxes, conj, conjugate, nonzero, flatten, * ravel, fill, transpose, newbyteorder# */ static PyObject * @@ -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, tostring, tobytes, copy# + * reshape, choose, tostring, tobytes, copy, searchsorted# */ static PyObject * gentype_@name@(PyObject *self, PyObject *args, PyObject *kwds) @@ -1960,7 +1960,7 @@ static PyMethodDef gentype_methods[] = { METH_VARARGS | METH_KEYWORDS, NULL}, {"searchsorted", (PyCFunction)gentype_searchsorted, - METH_VARARGS, NULL}, + METH_VARARGS | METH_KEYWORDS, NULL}, {"argmax", (PyCFunction)gentype_argmax, METH_VARARGS | METH_KEYWORDS, NULL}, |