8000 gh-118379: Use PyTuple_Pack by nineteendo · Pull Request #118381 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-118379: Use PyTuple_Pack #118381

New issue 8000

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

Merged
merged 4 commits into from
Apr 30, 2024
Merged
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
Revert deprecated code
  • Loading branch information
nineteendo committed Apr 30, 2024
commit e7cbd6ee0b6198184bb505e47e62bb2e66c23f0c
2 changes: 1 addition & 1 deletion Modules/itertoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,7 @@ product_reduce(productobject *lz, PyObject *Py_UNUSED(ignored))
if (lz->stopped) {
return Py_BuildValue("O(())", Py_TYPE(lz));
} else if (lz->result == NULL) {
return PyTuple_Pack(2, Py_TYPE(lz), lz->pools);
return Py_BuildValue("OO", Py_TYPE(lz), lz->pools);
} else {
PyObject *indices;
Py_ssize_t n, i;
Expand Down
Loading
0