From 2e2d99a3241cec2247547f20099cf03cbb1bf2b3 Mon Sep 17 00:00:00 2001 From: Jay Bourque Date: Wed, 27 Mar 2013 17:53:01 -0500 Subject: Remove keyword support for required arguments --- numpy/core/src/umath/ufunc_object.c | 8 +++----- 1 file 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 */ }; -- cgit v1.2.1