[Python-checkins] python/nondist/peps pep-3000.txt,1.6,1.7

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Thu Sep 2 21:10:16 CEST 2004


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5417

Modified Files:
	pep-3000.txt 
Log Message:
Mention that making list comprehensions sugar for genexps will remove exposure
of the loop variable.


Index: pep-3000.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-3000.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- pep-3000.txt	27 Aug 2004 18:43:32 -0000	1.6
+++ pep-3000.txt	2 Sep 2004 19:10:13 -0000	1.7
@@ -67,7 +67,8 @@
 * ``True`` and ``False`` become keywords [4]_
 * ``as`` becomes a keyword [5]_
 * 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
   will raise an exception unless explicitly supported by the type
 



More information about the Python-checkins mailing list