]> granicus.if.org Git - python/commitdiff
Mention that the leaking of variables from list comprehensions
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 23 May 2008 19:33:13 +0000 (19:33 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 23 May 2008 19:33:13 +0000 (19:33 +0000)
is fixed in 3.0.

Doc/reference/expressions.rst

index 1a43599c4ec37f29a06c401d9dbfc8b30922c9b1..e393661735f5dde3642ef15e528432d53f7e67c9 100644 (file)
@@ -1318,10 +1318,9 @@ groups from right to left).
 
 .. rubric:: Footnotes
 
-.. [#] In Python 2.3, a list comprehension "leaks" the control variables of each
-   ``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.
+.. [#] In Python 2.3 and later releases, a list comprehension "leaks" the control
+   variables of each ``for`` it contains into the containing scope.  However, this 
+   behavior is deprecated, and relying on it will not work in Python 3.0
 
 .. [#] While ``abs(x%y) < abs(y)`` is true mathematically, for floats it may not be
    true numerically due to roundoff.  For example, and assuming a platform on which