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
e04fe8c6
Commit
e04fe8c6
authored
May 19, 2006
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo fix; add clarifying word
parent
3e3cb790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/whatsnew/whatsnew20.tex
Doc/whatsnew/whatsnew20.tex
+2
-2
No files found.
Doc/whatsnew/whatsnew20.tex
View file @
e04fe8c6
...
...
@@ -330,7 +330,7 @@ List comprehensions have the form:
[ expression for expr in sequence1
for expr2 in sequence2 ...
for exprN in sequenceN
if condition
if condition
]
\end{verbatim}
The
\keyword
{
for
}
...
\keyword
{
in
}
clauses contain the sequences to be
...
...
@@ -356,7 +356,7 @@ for expr1 in sequence1:
# resulting list.
\end{verbatim}
This means that when there are
\keyword
{
for
}
...
\keyword
{
in
}
clauses,
This means that when there are
multiple
\keyword
{
for
}
...
\keyword
{
in
}
clauses,
the resulting list will be equal to the product of the lengths of all
the sequences. If you have two lists of length 3, the output list is
9 elements long:
...
...
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