[Python-checkins] python/dist/src/Python symtable.c, 2.10.8.21, 2.10.8.22 newcompile.c, 1.1.2.79, 1.1.2.80

nnorwitz at users.sourceforge.net nnorwitz at users.sourceforge.net
Sun Mar 21 12:14:35 EST 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8319/Python

Modified Files:
      Tag: ast-branch
	symtable.c newcompile.c 
Log Message:
get generators working

Index: symtable.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/symtable.c,v
retrieving revision 2.10.8.21
retrieving revision 2.10.8.22
diff -C2 -d -r2.10.8.21 -r2.10.8.22
*** symtable.c	15 Feb 2004 04:17:21 -0000	2.10.8.21
--- symtable.c	21 Mar 2004 17:14:32 -0000	2.10.8.22
***************
*** 643,646 ****
--- 643,647 ----
          case Yield_kind:
  		VISIT(st, expr, s->v.Yield.value);
+                 st->st_cur->ste_generator = 1;
  		break;
          case Delete_kind:

Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.79
retrieving revision 1.1.2.80
diff -C2 -d -r1.1.2.79 -r1.1.2.80
*** newcompile.c	21 Mar 2004 16:52:46 -0000	1.1.2.79
--- newcompile.c	21 Mar 2004 17:14:32 -0000	1.1.2.80
***************
*** 2733,2736 ****
--- 2733,2738 ----
  	if (ste->ste_varkeywords)
  		flags |= CO_VARKEYWORDS;
+ 	if (ste->ste_generator)
+ 		flags |= CO_GENERATOR;
  	n = PyDict_Size(c->u->u_freevars);
  	if (n < 0)




More information about the Python-checkins mailing list