diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2013-03-27 17:53:01 -0500 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2013-08-16 16:39:31 -0500 |
commit | 2e2d99a3241cec2247547f20099cf03cbb1bf2b3 (patch) | |
tree | de42e79a5a1cb562f664daa898bb784403e7e981 | |
parent | 45419ea12cca9d29d874620495319307b4dec6f4 (diff) | |
download | numpy-2e2d99a3241cec2247547f20099cf03cbb1bf2b3.tar.gz |
Remove keyword support for required arguments
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index cd6a6d44d..5314b2b27 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -4860,9 +4860,8 @@ ufunc_reduceat(PyUFuncObject *ufunc, PyObject *args, PyObject *kwds) * over first operand. */ static PyObject * -ufunc_at(PyUFuncObject *ufunc, PyObject *args, PyObject *kwds) +ufunc_at(PyUFuncObject *ufunc, PyObject *args) { - static char *kwlist[] = {"op1", "idx", "op2"}; PyObject *op1 = NULL; PyObject *idx = NULL; PyObject *op2 = NULL; @@ -4880,8 +4879,7 @@ ufunc_at(PyUFuncObject *ufunc, PyObject *args, PyObject *kwds) int ndim; int i; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO|O", kwlist, - &op1, &idx, &op2)) { + if (!PyArg_ParseTuple(args, "OO|O", &op1, &idx, &op2)) { return NULL; } @@ -5038,7 +5036,7 @@ static struct PyMethodDef ufunc_methods[] = { METH_VARARGS | METH_KEYWORDS, NULL}, {"at", (PyCFunction)ufunc_at, - METH_VARARGS | METH_KEYWORDS, NULL}, + METH_VARARGS, NULL}, {NULL, NULL, 0, NULL} /* sentinel */ }; |