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.
This commit is contained in:
Jeremy Hylton 2001-03-22 02:32:48 +00:00
parent f6e47ad4bd
commit 061d106a0f
4 changed files with 13 additions and 1 deletions

View file

@ -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;