diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-05-23 19:33:13 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-05-23 19:33:13 (GMT) |
commit | 0b66731ddd57963899441a843248f9c34eaa8c75 (patch) | |
tree | bfb58cd522b4f77f1320da046526fd9441f14e52 | |
parent | 0b334a64f2a4e4bb724706d5b98cb87e08a30004 (diff) | |
download | cpython-0b66731ddd57963899441a843248f9c34eaa8c75.zip cpython-0b66731ddd57963899441a843248f9c34eaa8c75.tar.gz cpython-0b66731ddd57963899441a843248f9c34eaa8c75.tar.bz2 |
Mention that the leaking of variables from list comprehensions
is fixed in 3.0.
-rw-r--r-- | Doc/reference/expressions.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 1a43599..e393661 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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 |