From d5b4f1b5a064c0d858352100fcddb91c363afa51 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Sat, 20 Oct 2018 01:46:00 +0100 Subject: 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. --- Modules/symtablemodule.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Modules/symtablemodule.c') diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c index 810f88da48..e8d2f5b582 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); -- cgit v1.2.1