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
36f738b5
Commit
36f738b5
authored
Aug 03, 2000
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Both PEP 201 Lockstep Iteration and SF patch #101030 have been
accepted by the BDFL. Added documentation for zip() builtin.
parent
80a647f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+9
-0
No files found.
Doc/lib/libfuncs.tex
View file @
36f738b5
...
...
@@ -703,3 +703,12 @@ them) except when a very large range is used on a memory-starved
machine (e.g. MS-DOS) or when all of the range's elements are never
used (e.g. when the loop is usually terminated with
\keyword
{
break
}
).
\end{funcdesc}
\begin{funcdesc}
{
zip
}{
seq1
\optional
{
, seq2
\optional
{
, ...
}}}
This function returns a list of tuples, where each tuple contains the
i-th element from each of the argument sequences. At least one
sequence is required, otherwise a
\exception
{
TypeError
}
is raised.
The returned list is truncated in length to the length of the shortest
argument sequence. When the argument sequences are all of the same
length,
\function
{
zip
}
is similar to
\function
{
map
}
with an initial
None argument.
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