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
33fd5f7e
Commit
33fd5f7e
authored
Jun 26, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo reported to python-docs.
parent
e0c62b4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Doc/tut/tut.tex
Doc/tut/tut.tex
+1
-1
No files found.
Doc/tut/tut.tex
View file @
33fd5f7e
...
...
@@ -1826,7 +1826,7 @@ List comprehensions provide a concise way to create lists without resorting
to use of
\function
{
map()
}
,
\function
{
filter()
}
and/or
\keyword
{
lambda
}
.
The resulting list definition tends often to be clearer than lists built
using those constructs. Each list comprehension consists of an expression
follow
ing
by a
\keyword
{
for
}
clause, then zero or more
\keyword
{
for
}
or
follow
ed
by a
\keyword
{
for
}
clause, then zero or more
\keyword
{
for
}
or
\keyword
{
if
}
clauses. The result will be a list resulting from evaluating
the expression in the context of the
\keyword
{
for
}
and
\keyword
{
if
}
clauses
which follow it. If the expression would evaluate to a tuple, it must be
...
...
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