mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-34983: Expose symtable.Symbol.is_nonlocal() in the symtable module (GH-9872)
The symbol table was not exposing functionality to query the nonlocal symbols in a function or to check if a particular symbol is nonlocal.
This commit is contained in:
parent
6395844e6a
commit
d5b4f1b5a0
5 changed files with 36 additions and 3 deletions
|
|
@ -84,6 +84,7 @@ PyInit__symtable(void)
|
|||
return NULL;
|
||||
PyModule_AddIntMacro(m, USE);
|
||||
PyModule_AddIntMacro(m, DEF_GLOBAL);
|
||||
PyModule_AddIntMacro(m, DEF_NONLOCAL);
|
||||
PyModule_AddIntMacro(m, DEF_LOCAL);
|
||||
PyModule_AddIntMacro(m, DEF_PARAM);
|
||||
PyModule_AddIntMacro(m, DEF_FREE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue