[Python-checkins] CVS: python/dist/src/Include compile.h,2.31,2.32

Guido van Rossum gvanrossum@users.sourceforge.net
Sun, 15 Jul 2001 14:08:31 -0700


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

Modified Files:
	compile.h 
Log Message:
Preliminary support for "from __future__ import generators" to enable
the yield statement.  I figure we have to have this in before I can
release 2.2a1 on Wednesday.

Note: test_generators is currently broken, I'm counting on Tim to fix
this.


Index: compile.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/compile.h,v
retrieving revision 2.31
retrieving revision 2.32
diff -C2 -r2.31 -r2.32
*** compile.h	2001/07/12 12:50:23	2.31
--- compile.h	2001/07/15 21:08:29	2.32
***************
*** 66,69 ****
--- 66,72 ----
  #define FUTURE_NESTED_SCOPES "nested_scopes"
  
+ #define GENERATORS_DEFAULT 0
+ #define FUTURE_GENERATORS "generators"
+ 
  /* for internal use only */
  #define _PyCode_GETCODEPTR(co, pp) \