diff options
author | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-10 08:29:54 +0900 |
---|---|---|
committer | Licht Takeuchi <licht-t@math.dis.titech.ac.jp> | 2017-08-10 08:29:54 +0900 |
commit | 4520ed2faf915e62252e64dcbecc5600b8d8affd (patch) | |
tree | 707d64b2fbb623a70a69ff5c3cb1bf9b4a8bfdf6 | |
parent | 89e45f9a23e023961af796e9e206ec27bfe9f135 (diff) | |
download | numpy-4520ed2faf915e62252e64dcbecc5600b8d8affd.tar.gz |
BUG: Fix scalar-copy 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 e2a926a04..7a3540901 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, copy, __deepcopy__, + * #name = tolist, item, __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, tostring, tobytes# + * reshape, choose, tostring, tobytes, copy# */ static PyObject * gentype_@name@(PyObject *self, PyObject *args, PyObject *kwds) @@ -1894,7 +1894,7 @@ static PyMethodDef gentype_methods[] = { METH_VARARGS | METH_KEYWORDS, NULL}, {"copy", (PyCFunction)gentype_copy, - METH_VARARGS, NULL}, + METH_VARARGS | METH_KEYWORDS, NULL}, {"resize", (PyCFunction)gentype_resize, METH_VARARGS | METH_KEYWORDS, NULL}, |