From 00ebb4b5b4d26d81425d5f4203589ae97549ff75 Mon Sep 17 00:00:00 2001 From: "d.grigonis" Date: Mon, 6 Jan 2025 15:05:54 +0200 Subject: [PATCH] comment edits --- Modules/_functoolsmodule.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index a4aaf5e27b870d..6f0477ff9b547f 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -361,7 +361,7 @@ partial_vectorcall(PyObject *self, PyObject *const *args, { partialobject *pto = _PyPartialObject_CAST(self);; PyThreadState *tstate = _PyThreadState_GET(); - /* Sizes */ + Py_ssize_t pto_nargs = PyTuple_GET_SIZE(pto->args); Py_ssize_t pto_nkwds = PyDict_GET_SIZE(pto->kw); Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); @@ -447,8 +447,8 @@ partial_vectorcall(PyObject *self, PyObject *const *args, } } else { - /* stack is now [, , , ] - * Will truncate to [, ] */ + /* stack is now [, , , ] + * Will resize later to [, ] */ PyObject *key, *val; /* Merge kw to pto_kw or add to tail (if not duplicate) */ @@ -541,7 +541,6 @@ partial_vectorcall(PyObject *self, PyObject *const *args, memcpy(stack + pto_nargs, args, nargs * sizeof(PyObject*)); } - /* Call / Maintenance / Return */ PyObject *ret = _PyObject_VectorcallTstate(tstate, pto->fn, stack, tot_nargs, tot_kwnames); if (stack != small_stack) {