8000 gh-117764: Add signatures for some objects in the itertools module by serhiy-storchaka · Pull Request #117774 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117764: Add signatures for some objects in the itertools module #117774

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

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Changes from all commits
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
9 changes: 6 additions & 3 deletions Modules/itertoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,8 @@ chain_setstate(chainobject *lz, PyObject *state)
}

PyDoc_STRVAR(chain_doc,
"chain(*iterables) --> chain object\n\
"chain(*iterables)\n\
--\n\
\n\
Return a chain object whose .__next__() method returns elements from the\n\
first iterable until it is exhausted, then elements from the next\n\
Expand Down Expand Up @@ -2528,7 +2529,8 @@ static PyMethodDef product_methods[] = {
};

PyDoc_STRVAR(product_doc,
"product(*iterables, repeat=1) --> product object\n\
"product(*iterables, repeat=1)\n\
--\n\
\n\
Cartesian product of input iterables. Equivalent to nested for-loops.\n\n\
For example, product(A, B) returns the same as: ((x,y) for x in A for y in B).\n\
Expand Down Expand Up @@ -4573,7 +4575,8 @@ static PyMethodDef zip_longest_methods[] = {
};

PyDoc_STRVAR(zip_longest_doc,
"zip_longest(iter1 [,iter2 [...]], [fillvalue=None]) --> zip_longest object\n\
"zip_longest(*iterables, fillvalue=None)\n\
--\n\
\n\
Return a zip_longest object whose .__next__() method returns a tuple where\n\
the i-th element comes from the i-th iterable argument. The .__next__()\n\
Expand Down
0