[Python-checkins] python/dist/src/Python ast.c,1.1.2.19,1.1.2.20

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Tue, 25 Mar 2003 14:21:24 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv22627/Python

Modified Files:
      Tag: ast-branch
	ast.c 
Log Message:
assign to the target variable in a for loop (was loading)

Index: ast.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/ast.c,v
retrieving revision 1.1.2.19
retrieving revision 1.1.2.20
diff -C2 -d -r1.1.2.19 -r1.1.2.20
*** ast.c	25 Mar 2003 19:42:23 -0000	1.1.2.19
--- ast.c	25 Mar 2003 22:21:20 -0000	1.1.2.20
***************
*** 1287,1291 ****
  	seq = ast_for_suite(CHILD(n, 8));
  
!     _target = ast_for_exprlist(CHILD(n, 1), 0);
      if (asdl_seq_LEN(_target) == 1) {
  	target = asdl_seq_GET(_target, 0);
--- 1287,1291 ----
  	seq = ast_for_suite(CHILD(n, 8));
  
!     _target = ast_for_exprlist(CHILD(n, 1), Store);
      if (asdl_seq_LEN(_target) == 1) {
  	target = asdl_seq_GET(_target, 0);