[Python-checkins] r63569 - python/trunk/Doc/reference/expressions.rst

martin.v.loewis python-checkins at python.org
Fri May 23 21:33:13 CEST 2008


Author: martin.v.loewis
Date: Fri May 23 21:33:13 2008
New Revision: 63569

Log:
Mention that the leaking of variables from list comprehensions
is fixed in 3.0.


Modified:
   python/trunk/Doc/reference/expressions.rst

Modified: python/trunk/Doc/reference/expressions.rst
==============================================================================
--- python/trunk/Doc/reference/expressions.rst	(original)
+++ python/trunk/Doc/reference/expressions.rst	Fri May 23 21:33:13 2008
@@ -1318,10 +1318,9 @@
 
 .. 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


More information about the Python-checkins mailing list