diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2018-10-20 00:46:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 00:46:00 (GMT) |
commit | d5b4f1b5a064c0d858352100fcddb91c363afa51 (patch) | |
tree | cae99173cc824e62289c7ebd8e5be290a206d0c1 /Modules/symtablemodule.c | |
parent | 6395844e6adebc12c4eba1fb75c5e7c9c8b89f85 (diff) | |
download | cpython-d5b4f1b5a064c0d858352100fcddb91c363afa51.zip cpython-d5b4f1b5a064c0d858352100fcddb91c363afa51.tar.gz cpython-d5b4f1b5a064c0d858352100fcddb91c363afa51.tar.bz2 |
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.
Diffstat (limited to 'Modules/symtablemodule.c')
-rw-r--r-- | Modules/symtablemodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c index 810f88d..e8d2f5b 100644 --- a/Modules/symtablemodule.c +++ b/Modules/symtablemodule.c @@ -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); |