summaryrefslogtreecommitdiffstats
path: root/Include/compile.h
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-03-22 02:32:48 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-03-22 02:32:48 (GMT)
commit061d106a0f56c5b4171ad8c56ecfaa6cefb27385 (patch)
tree5f8752ceddffe173d9bf0b6de2781cbfd67e8f08 /Include/compile.h
parentf6e47ad4bd12ffa633d51071520722be32fb252d (diff)
downloadcpython-061d106a0f56c5b4171ad8c56ecfaa6cefb27385.zip
cpython-061d106a0f56c5b4171ad8c56ecfaa6cefb27385.tar.gz
cpython-061d106a0f56c5b4171ad8c56ecfaa6cefb27385.tar.bz2
If a code object is compiled with nested scopes, define the CO_NESTED flag.
Add PyEval_GetNestedScopes() which returns a non-zero value if the code for the current interpreter frame has CO_NESTED defined.
Diffstat (limited to 'Include/compile.h')
-rw-r--r--Include/compile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/compile.h b/Include/compile.h
index deb8ee8..e60af59 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -32,6 +32,7 @@ typedef struct {
#define CO_NEWLOCALS 0x0002
#define CO_VARARGS 0x0004
#define CO_VARKEYWORDS 0x0008
+#define CO_NESTED 0x0010
extern DL_IMPORT(PyTypeObject) PyCode_Type;