Searched refs:DEF_NONLOCAL (Results 1 - 4 of 4) sorted by relevance
/third_party/python/Include/internal/ |
H A D | pycore_symtable.h | 98 #define DEF_NONLOCAL 2<<2 /* nonlocal stmt */ macro 113 #define SCOPE_MASK (DEF_GLOBAL | DEF_LOCAL | DEF_PARAM | DEF_NONLOCAL)
|
/third_party/python/Lib/ |
H A D | symtable.py | 4 from _symtable import (USE, DEF_GLOBAL, DEF_NONLOCAL, DEF_LOCAL, DEF_PARAM, namespace 192 self.__nonlocals = self.__idents_matching(lambda x:x & DEF_NONLOCAL) 255 return bool(self.__flags & DEF_NONLOCAL)
|
/third_party/python/Modules/ |
H A D | symtablemodule.c | 81 if (PyModule_AddIntMacro(m, DEF_NONLOCAL) < 0) return -1; in symtable_init_constants()
|
/third_party/python/Python/ |
H A D | symtable.c | 506 if (flags & DEF_NONLOCAL) { in analyze_name() 519 if (flags & DEF_NONLOCAL) { in analyze_name() 1059 if (val & (DEF_GLOBAL | DEF_NONLOCAL)) { in symtable_add_def_helper() 1258 if ((cur & (DEF_GLOBAL | DEF_NONLOCAL)) in symtable_visit_stmt() 1416 if (!symtable_add_def(st, name, DEF_NONLOCAL, LOCATION(s))) in symtable_visit_stmt() 1515 if (!symtable_add_def(st, target_name, DEF_NONLOCAL, LOCATION(e))) in symtable_extend_namedexpr_scope()
|
Completed in 4 milliseconds