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

Guido van Rossum gvanrossum@users.sourceforge.net
2001年7月12日 05:50:25 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv24799
Modified Files:
	compile.h 
Log Message:
Enable nested scopes by default.
Although this is a one-character change, more work needs to be done:
the compiler can get rid of a lot of non-nested-scopes code, the
documentation needs to be updated, the future statement can be
simplified, etc.
But this change enables the nested scope semantics everywhere, and
that's the important part -- we can now test code for compatibility
with nested scopes by default.
Index: compile.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/compile.h,v
retrieving revision 2.30
retrieving revision 2.31
diff -C2 -r2.30 -r2.31
*** compile.h	2001年06月18日 22:08:13	2.30
--- compile.h	2001年07月12日 12:50:23	2.31
***************
*** 63,67 ****
 					 PyCompilerFlags *);
 
! #define NESTED_SCOPES_DEFAULT 0
 #define FUTURE_NESTED_SCOPES "nested_scopes"
 
--- 63,67 ----
 					 PyCompilerFlags *);
 
! #define NESTED_SCOPES_DEFAULT 1
 #define FUTURE_NESTED_SCOPES "nested_scopes"
 

AltStyle によって変換されたページ (->オリジナル) /