[Python-checkins] python/dist/src/Misc NEWS,1.1390,1.1391

nnorwitz@users.sourceforge.net nnorwitz at users.sourceforge.net
Fri Oct 21 08:25:37 CEST 2005


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9310/Misc

Modified Files:
	NEWS 
Log Message:
Incorrect code was generated for:

  foo(a = i for i in range(10))

This should have generated a SyntaxError.  Fix the Grammar so
it raises a SyntaxError and test it.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1390
retrieving revision 1.1391
diff -u -d -r1.1390 -r1.1391
--- NEWS	9 Oct 2005 19:42:27 -0000	1.1390
+++ NEWS	21 Oct 2005 06:25:33 -0000	1.1391
@@ -12,6 +12,9 @@
 Core and builtins
 -----------------
 
+- SF bug #116775: fix incorrect code being for generator expressions.
+  The following code now raises a SyntaxError:  foo(a = i for i in range(10))
+
 - SF Bug #976608: fix SystemError when mtime of an imported file is -1.
 
 - SF Bug #887946: fix segfault when redirecting stdin from a directory.



More information about the Python-checkins mailing list