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
4d35aecb
Commit
4d35aecb
authored
Aug 23, 2000
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix list comprehension discussion to use \keyword macro instead of simply
quoting keywords.
parent
1d898299
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Doc/ref/ref5.tex
Doc/ref/ref5.tex
+4
-3
No files found.
Doc/ref/ref5.tex
View file @
4d35aecb
...
...
@@ -164,10 +164,11 @@ by providing either a list of expressions or a list comprehension.
When a comma-separated list of expressions is supplied, its elements are
evaluated from left to right and placed into the list object in that
order. When a list comprehension is supplied, it consists of a
single expression followed by at least one
"for" clause and zero or more
"for" or "if"
clauses. In this
single expression followed by at least one
\keyword
{
for
}
clause and zero or
more
\keyword
{
for
}
or
\keyword
{
if
}
clauses. In this
case, the elements of the new list are those that would be produced
by considering each of the "for" or "if" clauses a block, nesting from
by considering each of the
\keyword
{
for
}
or
\keyword
{
if
}
clauses a block,
nesting from
left to right, and evaluating the expression to produce a list element
each time the innermost block is reached.
\obindex
{
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