diff Include/code.h @ 36726:bbf16fd024df legacy-trunk

from __future__ import with_statement addon for 'with', mostly written by Neal.
author Thomas Wouters <thomas@python.org>
date Tue, 28 Feb 2006 19:02:24 +0000
parents 5c36c222e7ca
children cea54c9d921d 49c6eb688906
line wrap: on
line diff
--- a/Include/code.h	Tue Feb 28 19:02:05 2006 +0000
+++ b/Include/code.h	Tue Feb 28 19:02:24 2006 +0000
@@ -46,6 +46,12 @@
 #endif
 #define CO_FUTURE_DIVISION    	0x2000
 #define CO_FUTURE_ABSIMPORT	0x4000 /* absolute import by default */
+#define CO_FUTURE_WITH_STATEMENT  0x8000
+
+/* This should be defined if a future statement modifies the syntax.
+   For example, when a keyword is added.
+*/
+#define PY_PARSER_REQUIRES_FUTURE_KEYWORD
 
 #define CO_MAXBLOCKS 20 /* Max static block nesting within a function */