Skip to content

Commit 00ebb4b

Browse files
committed
comment edits
1 parent b3ff73d commit 00ebb4b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Modules/_functoolsmodule.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
361361
{
362362
partialobject *pto = _PyPartialObject_CAST(self);;
363363
PyThreadState *tstate = _PyThreadState_GET();
364-
/* Sizes */
364+
365365
Py_ssize_t pto_nargs = PyTuple_GET_SIZE(pto->args);
366366
Py_ssize_t pto_nkwds = PyDict_GET_SIZE(pto->kw);
367367
Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
@@ -447,8 +447,8 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
447447
}
448448
}
449449
else {
450-
/* stack is now [<positionals>, <pto_kwds>, <kwds>, <kwds_keys>]
451-
* Will truncate to [<positionals>, <merged_kwds>] */
450+
/* stack is now [<positionals>, <pto_kwds>, <kwds>, <kwds_keys>]
451+
* Will resize later to [<positionals>, <merged_kwds>] */
452452
PyObject *key, *val;
453453

454454
/* Merge kw to pto_kw or add to tail (if not duplicate) */
@@ -541,7 +541,6 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
541541
memcpy(stack + pto_nargs, args, nargs * sizeof(PyObject*));
542542
}
543543

544-
/* Call / Maintenance / Return */
545544
PyObject *ret = _PyObject_VectorcallTstate(tstate, pto->fn, stack,
546545
tot_nargs, tot_kwnames);
547546
if (stack != small_stack) {

0 commit comments

Comments
 (0)