commit | b266481ed8dba9164b03e72bab9c19712b938657 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Jun 11 17:49:38 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Jun 11 17:49:38 2009 +0000 |
tree | 3d3f5bd9e4a88feaf78dc9b3aff9488121f9262b | |
parent | e5fa5fe8fcf2a654dbae1bd6b6b49c0887d859b4 [diff] |
revert r73361
diff --git a/Python/ast.c b/Python/ast.c index 8e1c530..2cc41b2 100644 --- a/Python/ast.c +++ b/Python/ast.c
@@ -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 */