revert r73361

This commit is contained in:
Benjamin Peterson 2009-06-11 17:49:38 +00:00
parent e5fa5fe8fc
commit b266481ed8
1 changed files with 4 additions and 0 deletions

View File

@ -2120,6 +2120,10 @@ ast_for_expr_stmt(struct compiling *c, const node *n)
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 */