[Python-checkins] python/dist/src/Python ast.c,1.1.2.48,1.1.2.49
jhylton at users.sourceforge.net
jhylton at users.sourceforge.net
Tue Apr 13 13:11:46 EDT 2004
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13878
Modified Files:
Tag: ast-branch
ast.c
Log Message:
The value expression for a list comp is just a general expression, not
a potential assignment target. So don't call set_context() for it.
Index: ast.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/ast.c,v
retrieving revision 1.1.2.48
retrieving revision 1.1.2.49
diff -C2 -d -r1.1.2.48 -r1.1.2.49
*** ast.c 13 Apr 2004 15:01:12 -0000 1.1.2.48
--- ast.c 13 Apr 2004 17:11:43 -0000 1.1.2.49
***************
*** 308,311 ****
--- 308,312 ----
Maybe there's a problem with nested list comps?
*/
+ abort();
fprintf(stderr, "can't set context for %d\n", e->kind);
return 0;
***************
*** 680,688 ****
return NULL;
- if (set_context(elt, Load) == -1) {
- fprintf(stderr, "XXX 2\n");
- return NULL;
- }
-
n_fors = count_list_fors(n);
if (n_fors == -1)
--- 681,684 ----
More information about the Python-checkins
mailing list