]> granicus.if.org Git - python/commitdiff
Adjust builtins.zip() docstring to better communicate its signature (GH-14833)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jul 2019 18:29:58 +0000 (11:29 -0700)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2019 18:29:58 +0000 (11:29 -0700)
(cherry picked from commit af2f5b1723b95e45e1f15b5bd52102b7de560f7c)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Python/bltinmodule.c

index 82ae7116841bad397fd7beb7888a3862dbb6c57d..62502218ef4cdbc458102ce2cecdb5ef1d2ca248 100644 (file)
@@ -2656,7 +2656,7 @@ static PyMethodDef zip_methods[] = {
 };
 
 PyDoc_STRVAR(zip_doc,
-"zip(iter1 [,iter2 [...]]) --> zip object\n\
+"zip(*iterables) --> zip object\n\
 \n\
 Return a zip object whose .__next__() method returns a tuple where\n\
 the i-th element comes from the i-th iterable argument.  The .__next__()\n\