From 0b66731ddd57963899441a843248f9c34eaa8c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 23 May 2008 19:33:13 +0000 Subject: Mention that the leaking of variables from list comprehensions is fixed in 3.0. --- Doc/reference/expressions.rst | 7 +++---- 1 file 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 -- cgit v0.12