Mention that making list comprehensions sugar for genexps will remove exposure

of the loop variable.
This commit is contained in:
Brett Cannon 2004-09-02 19:10:13 +00:00
parent 753c085617
commit 90a5294752
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ Core language
* ``True`` and ``False`` become keywords [4]_ * ``True`` and ``False`` become keywords [4]_
* ``as`` becomes a keyword [5]_ * ``as`` becomes a keyword [5]_
* Have list comprehensions be syntactic sugar for passing an * Have list comprehensions be syntactic sugar for passing an
equivalent generator expression to ``list()``. equivalent generator expression to ``list()``; as a consequence the
loop variable will no longer be exposed.
* Comparisons other than ``==`` and ``!=`` between disparate types * Comparisons other than ``==`` and ``!=`` between disparate types
will raise an exception unless explicitly supported by the type will raise an exception unless explicitly supported by the type