summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-04-12 09:36:27 (GMT)
committerGitHub <noreply@github.com>2024-04-12 09:36:27 (GMT)
commit49af71a04a855eb150efa4d5ca638b72f167489a (patch)
tree456c82e3fc79e8f4b774ef6647638a285f8c7f9c
parent3a26e29215ec39e15546d4251858c130859cc06f (diff)
downloadcpython-49af71a04a855eb150efa4d5ca638b72f167489a.zip
cpython-49af71a04a855eb150efa4d5ca638b72f167489a.tar.gz
cpython-49af71a04a855eb150efa4d5ca638b72f167489a.tar.bz2
gh-117764: Add signatures for some objects in the itertools module (GH-117774)
-rw-r--r--Modules/itertoolsmodule.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 44b92f8..6ee447e 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -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\
@@ -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\
@@ -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\