mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
Adjust builtins.zip() docstring to better communicate its signature (GH-14833)
This commit is contained in:
parent
9cd39b16e2
commit
af2f5b1723
1 changed files with 1 additions and 1 deletions
|
@ -2655,7 +2655,7 @@ static PyMethodDef zip_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
PyDoc_STRVAR(zip_doc,
|
PyDoc_STRVAR(zip_doc,
|
||||||
"zip(iter1 [,iter2 [...]]) --> zip object\n\
|
"zip(*iterables) --> zip object\n\
|
||||||
\n\
|
\n\
|
||||||
Return a zip object whose .__next__() method returns a tuple where\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\
|
the i-th element comes from the i-th iterable argument. The .__next__()\n\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue