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
cbd81556
Commit
cbd81556
authored
Aug 07, 2004
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug #827209] Add footnote from Alex M. about listcomps leaking their index variables
parent
8484fbf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Doc/ref/ref5.tex
Doc/ref/ref5.tex
+5
-1
No files found.
Doc/ref/ref5.tex
View file @
cbd81556
...
...
@@ -184,7 +184,11 @@ case, the elements of the new list are those that would be produced
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.
each time the innermost block is reached
\footnote
{
In Python 2.3, a
list comprehension "leaks" the control variables of each
\samp
{
for
}
it contains into the containing scope. However, this
behavior is deprecated, and relying on it will not work once this
bug is fixed in a future release
}
.
\obindex
{
list
}
\indexii
{
empty
}{
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