diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-03-22 02:32:48 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-03-22 02:32:48 (GMT) |
commit | 061d106a0f56c5b4171ad8c56ecfaa6cefb27385 (patch) | |
tree | 5f8752ceddffe173d9bf0b6de2781cbfd67e8f08 /Include/ceval.h | |
parent | f6e47ad4bd12ffa633d51071520722be32fb252d (diff) | |
download | cpython-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/ceval.h')
-rw-r--r-- | Include/ceval.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index 3527626..4e6889e 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -28,6 +28,7 @@ DL_IMPORT(PyObject *) PyEval_GetLocals(void); DL_IMPORT(PyObject *) PyEval_GetOwner(void); DL_IMPORT(PyObject *) PyEval_GetFrame(void); DL_IMPORT(int) PyEval_GetRestricted(void); +DL_IMPORT(int) PyEval_GetNestedScopes(void); DL_IMPORT(int) Py_FlushLine(void); |