Home
last modified time | relevance | path

Searched refs:DEF_NONLOCAL (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Include/internal/
Dpycore_symtable.h97 #define DEF_NONLOCAL 2<<2 /* nonlocal stmt */ macro
112 #define SCOPE_MASK (DEF_GLOBAL | DEF_LOCAL | DEF_PARAM | DEF_NONLOCAL)
/third_party/python/Lib/
Dsymtable.py4 from _symtable import (USE, DEF_GLOBAL, DEF_NONLOCAL, DEF_LOCAL, DEF_PARAM,
192 self.__nonlocals = self.__idents_matching(lambda x:x & DEF_NONLOCAL)
255 return bool(self.__flags & DEF_NONLOCAL)
/third_party/python/Modules/
Dsymtablemodule.c81 if (PyModule_AddIntMacro(m, DEF_NONLOCAL) < 0) return -1; in symtable_init_constants()
/third_party/python/Python/
Dsymtable.c513 if (flags & DEF_NONLOCAL) { in analyze_name()
526 if (flags & DEF_NONLOCAL) { in analyze_name()
1070 if (val & (DEF_GLOBAL | DEF_NONLOCAL)) { in symtable_add_def_helper()
1269 if ((cur & (DEF_GLOBAL | DEF_NONLOCAL)) in symtable_visit_stmt()
1421 if (!symtable_add_def(st, name, DEF_NONLOCAL, LOCATION(s))) in symtable_visit_stmt()
1520 if (!symtable_add_def(st, target_name, DEF_NONLOCAL, LOCATION(e))) in symtable_extend_namedexpr_scope()