Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1823ae7e
Commit
1823ae7e
authored
Aug 21, 2005
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF bug #1121416: zip incorrectly and incompletely documented
sequences ==> iterables
parent
a30616a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+4
-4
No files found.
Doc/lib/libfuncs.tex
View file @
1823ae7e
...
...
@@ -1149,12 +1149,12 @@ It's a function
that the number of elements fit in a native C long.
}
\end{funcdesc}
\begin{funcdesc}
{
zip
}{
\optional
{
seq1
,
\moreargs
}}
\begin{funcdesc}
{
zip
}{
\optional
{
iterable
,
\moreargs
}}
This function returns a list of tuples, where the
\var
{
i
}
-th tuple contains
the
\var
{
i
}
-th element from each of the argument sequences.
the
\var
{
i
}
-th element from each of the argument sequences
or iterables
.
The returned list is truncated in length to the length of
the shortest argument sequence. When there are multiple argument
sequences
which are all of the same length,
\function
{
zip()
}
is
the shortest argument sequence. When there are multiple argument
s
which are all of the same length,
\function
{
zip()
}
is
similar to
\function
{
map()
}
with an initial argument of
\code
{
None
}
.
With a single sequence argument, it returns a list of 1-tuples.
With no arguments, it returns an empty list.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment