Home
last modified time | relevance | path

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

/external/python/cpython3/Include/
Dsymtable.h93 #define DEF_NONLOCAL 2<<2 /* nonlocal stmt */ macro
108 #define SCOPE_MASK (DEF_GLOBAL | DEF_LOCAL | DEF_PARAM | DEF_NONLOCAL)
/external/python/cpython3/Lib/
Dsymtable.py4 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/
Dsymtablemodule.c99 PyModule_AddIntMacro(m, DEF_NONLOCAL); in PyInit__symtable()
/external/python/cpython3/Python/
Dsymtable.c502 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()