summaryrefslogtreecommitdiff
path: root/Include/compile.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-15 21:08:29 +0000
committerGuido van Rossum <guido@python.org>2001-07-15 21:08:29 +0000
commitb09f7ed6235783fca27a4f8730c4c33e0f53c16c (patch)
treed76806c53fd83557378dcd7395ce5309f707eb15 /Include/compile.h
parent045ca7ae72368ce65fe7debbd343cf8133eea5e4 (diff)
downloadcpython-git-b09f7ed6235783fca27a4f8730c4c33e0f53c16c.tar.gz
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.
Diffstat (limited to 'Include/compile.h')
-rw-r--r--Include/compile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/compile.h b/Include/compile.h
index b9a735a5df..5e6e572ab4 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -65,6 +65,9 @@ DL_IMPORT(PyCodeObject *) PyNode_CompileFlags(struct _node *, char *,
#define NESTED_SCOPES_DEFAULT 1
#define FUTURE_NESTED_SCOPES "nested_scopes"
+#define GENERATORS_DEFAULT 0
+#define FUTURE_GENERATORS "generators"
+
/* for internal use only */
#define _PyCode_GETCODEPTR(co, pp) \
((*(co)->co_code->ob_type->tp_as_buffer->bf_getreadbuffer) \