Skip to content

Commit 85d658f

Browse files
committed
moved declarations to more sensible place
1 parent e326fcf commit 85d658f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Modules/_functoolsmodule.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,7 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
361361
{
362362
partialobject *pto = _PyPartialObject_CAST(self);;
363363
PyThreadState *tstate = _PyThreadState_GET();
364-
365-
Py_ssize_t pto_nargs = PyTuple_GET_SIZE(pto->args);
366-
Py_ssize_t pto_nkwds = PyDict_GET_SIZE(pto->kw);
367364
Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
368-
Py_ssize_t nkwds = kwnames == NULL ? 0 : PyTuple_GET_SIZE(kwnames);
369-
Py_ssize_t nargskw = nargs + nkwds;
370365

371366
/* Placeholder check */
372367
Py_ssize_t pto_phcount = pto->phcount;
@@ -377,6 +372,10 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
377372
return NULL;
378373
}
379374

375+
Py_ssize_t nkwds = kwnames == NULL ? 0 : PyTuple_GET_SIZE(kwnames);
376+
Py_ssize_t nargskw = nargs + nkwds;
377+
Py_ssize_t pto_nargs = PyTuple_GET_SIZE(pto->args);
378+
Py_ssize_t pto_nkwds = PyDict_GET_SIZE(pto->kw);
380379
PyObject **pto_args = _PyTuple_ITEMS(pto->args);
381380

382381
/* Special cases */

0 commit comments

Comments
 (0)