diff options
Diffstat (limited to 'Modules/_heapqmodule.c')
-rw-r--r-- | Modules/_heapqmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c index 8074bb1..21df796 100644 --- a/Modules/_heapqmodule.c +++ b/Modules/_heapqmodule.c @@ -222,7 +222,7 @@ nlargest(PyObject *self, PyObject *args) PyObject *heap=NULL, *elem, *iterable, *sol, *it, *oldelem; int i, n; - if (!PyArg_ParseTuple(args, "Oi:nlargest", &iterable, &n)) + if (!PyArg_ParseTuple(args, "iO:nlargest", &n, &iterable)) return NULL; it = PyObject_GetIter(iterable); @@ -381,7 +381,7 @@ nsmallest(PyObject *self, PyObject *args) PyObject *heap=NULL, *elem, *iterable, *los, *it, *oldelem; int i, n; - if (!PyArg_ParseTuple(args, "Oi:nsmallest", &iterable, &n)) + if (!PyArg_ParseTuple(args, "iO:nsmallest", &n, &iterable)) return NULL; it = PyObject_GetIter(iterable); |