Skip to content

Commit

Permalink
removed commented fix when trailing placeholders allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
dg-pb committed Jan 9, 2025
1 parent 25a91aa commit e326fcf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Modules/_functoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,17 +387,6 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
pto_nargs, NULL);
}

// TO BE ADDED ON MERGE TO MAIN
// IF https://github.com/python/cpython/pull/124788
// IS MERGED BEFORE THIS
// /* Fast path if all Placeholders */
// if (pto_nargs == pto_phcount) {
// /* NOTE: Without this, following single argument Fast Path
// * is incorrect */
// return _PyObject_VectorcallTstate(tstate, pto->fn,
// args, nargs, kwnames);
// }

/* Use PY_VECTORCALL_ARGUMENTS_OFFSET to prepend a single
* positional argument. */
if (pto_nargs == 1 && (nargsf & PY_VECTORCALL_ARGUMENTS_OFFSET)) {
Expand Down

0 comments on commit e326fcf

Please sign in to comment.