Kaydet (Commit) 0b66731d authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Mention that the leaking of variables from list comprehensions

is fixed in 3.0.
üst 0b334a64
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment