[Python-checkins] r73362 - python/trunk/Python/ast.c
benjamin.peterson
python-checkins at python.org
Thu Jun 11 19:49:39 CEST 2009
Author: benjamin.peterson
Date: Thu Jun 11 19:49:38 2009
New Revision: 73362
Log:
revert r73361
Modified:
python/trunk/Python/ast.c
Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c (original)
+++ python/trunk/Python/ast.c Thu Jun 11 19:49:38 2009
@@ -2120,6 +2120,10 @@
for (i = 0; i < NCH(n) - 2; i += 2) {
expr_ty e;
node *ch = CHILD(n, i);
+ if (TYPE(ch) == yield_expr) {
+ ast_error(ch, "assignment to yield expression not possible");
+ return NULL;
+ }
e = ast_for_testlist(c, ch);
/* set context to assign */
More information about the Python-checkins
mailing list