8000 gh-117764: Add signatures for some objects in the itertools module (G… · python/cpython@49af71a · GitHub
[go: up one dir, main page]

Skip to content

Commit 49af71a

Browse files
gh-117764: Add signatures for some objects in the itertools module (GH-117774)
1 parent 3a26e29 commit 49af71a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Modules/itertoolsmodule.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,8 @@ chain_setstate(chainobject *lz, PyObject *state)
21892189
}
21902190

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

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

45754577
PyDoc_STRVAR(zip_longest_doc,
4576-
"zip_longest(iter1 [,iter2 [...]], [fillvalue=None]) --> zip_longest object\n\
4578+
"zip_longest(*iterables, fillvalue=None)\n\
4579+
--\n\
45774580
\n\
45784581
Return a zip_longest object whose .__next__() method returns a tuple where\n\
45794582
the i-th element comes from the i-th iterable argument. The .__next__()\n\

0 commit comments

Comments
 (0)
0