8000 gh-124652: partialmethod simplifications by dg-pb · Pull Request #124788 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-124652: partialmethod simplifications #124788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
put back accidental removal
  • Loading branch information
dg-pb committed Sep 30, 2024
commit b76ffeefa62f7cc365f4eb9d48a88905a207646f
1 change: 1 addition & 0 deletions Modules/_functoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ partial_setstate(partialobject *pto, PyObject *state)
}

/* Count placeholders */
Py_ssize_t nargs = PyTuple_GET_SIZE(fnargs);
Py_ssize_t phcount = 0;
for (Py_ssize_t i = 0; i < nargs - 1; i++) {
if (PyTuple_GET_ITEM(fnargs, i) == pto->placeholder) {
Expand Down
Loading
0