[Python-checkins] CVS: python/dist/src/Python compile.c,2.149,2.150

Jeremy Hylton jhylton@users.sourceforge.net
Mon, 22 Jan 2001 17:26:22 -0800


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

Modified Files:
	compile.c 
Log Message:
Visit the initial test element of the listmaker for a list
comprehension.  Fixes bug reported by Tim Peters.


Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.149
retrieving revision 2.150
diff -C2 -r2.149 -r2.150
*** compile.c	2001/01/23 00:50:52	2.149
--- compile.c	2001/01/23 01:26:20	2.150
***************
*** 4211,4215 ****
  		if (NCH(n) > 1 && TYPE(CHILD(n, 1)) == list_for) {
  			symtable_list_comprehension(st, CHILD(n, 1));
! 			break;
  		}
  	case atom:
--- 4211,4216 ----
  		if (NCH(n) > 1 && TYPE(CHILD(n, 1)) == list_for) {
  			symtable_list_comprehension(st, CHILD(n, 1));
! 			n = CHILD(n, 0);
! 			goto loop;
  		}
  	case atom: