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
b655939d
Commit
b655939d
authored
Sep 11, 2000
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add index entries for list comprehensions
parent
0932cb44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Doc/ref/ref5.tex
Doc/ref/ref5.tex
+2
-0
No files found.
Doc/ref/ref5.tex
View file @
b655939d
...
...
@@ -147,6 +147,7 @@ pass uncaught.
\subsection
{
List displays
\label
{
lists
}}
\indexii
{
list
}{
display
}
\indexii
{
list
}{
comprehensions
}
A list display is a possibly empty series of expressions enclosed in
square brackets:
...
...
@@ -161,6 +162,7 @@ list_if: "if" test [list_iter]
A list display yields a new list object. Its contents are specified
by providing either a list of expressions or a list comprehension.
\indexii
{
list
}{
comprehensions
}
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
...
...
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