Searched refs:DEF_NONLOCAL (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Include/ |
D | symtable.h | 93 #define DEF_NONLOCAL 2<<2 /* nonlocal stmt */ macro 108 #define SCOPE_MASK (DEF_GLOBAL | DEF_LOCAL | DEF_PARAM | DEF_NONLOCAL)
|
/external/python/cpython3/Lib/ |
D | symtable.py | 4 from _symtable import (USE, DEF_GLOBAL, DEF_NONLOCAL, DEF_LOCAL, DEF_PARAM, 145 self.__nonlocals = self.__idents_matching(lambda x:x & DEF_NONLOCAL) 196 return bool(self.__flags & DEF_NONLOCAL)
|
/external/python/cpython3/Modules/ |
D | symtablemodule.c | 99 PyModule_AddIntMacro(m, DEF_NONLOCAL); in PyInit__symtable()
|
/external/python/cpython3/Python/ |
D | symtable.c | 502 if (flags & DEF_NONLOCAL) { in analyze_name() 515 if (flags & DEF_NONLOCAL) { in analyze_name() 1048 if (val & (DEF_GLOBAL | DEF_NONLOCAL)) { in symtable_add_def_helper() 1239 if ((cur & (DEF_GLOBAL | DEF_NONLOCAL)) in symtable_visit_stmt() 1377 if (!symtable_add_def(st, name, DEF_NONLOCAL)) in symtable_visit_stmt() 1472 if (!symtable_add_def(st, target_name, DEF_NONLOCAL)) in symtable_extend_namedexpr_scope()
|