mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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:
parent
f6e47ad4bd
commit
061d106a0f
4 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue