Searched refs:DEF_LOCAL (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython3/Include/ |
D | symtable.h | 91 #define DEF_LOCAL 2 /* assignment in code block */ macro 101 #define DEF_BOUND (DEF_LOCAL | DEF_PARAM | DEF_IMPORT) 108 #define SCOPE_MASK (DEF_GLOBAL | DEF_LOCAL | DEF_PARAM | DEF_NONLOCAL)
|
/external/python/cpython2/Include/ |
D | symtable.h | 64 #define DEF_LOCAL 2 /* assignment in code block */ macro 71 #define DEF_BOUND (DEF_LOCAL | DEF_PARAM | DEF_IMPORT)
|
/external/python/cpython2/Lib/ |
D | symtable.py | 4 from _symtable import (USE, DEF_GLOBAL, DEF_LOCAL, DEF_PARAM, 205 return bool(self.__flags & DEF_LOCAL)
|
/external/python/cpython2/Modules/ |
D | symtablemodule.c | 63 PyModule_AddIntConstant(m, "DEF_LOCAL", DEF_LOCAL); in init_symtable()
|
/external/python/cpython3/Lib/ |
D | symtable.py | 4 from _symtable import (USE, DEF_GLOBAL, DEF_NONLOCAL, DEF_LOCAL, DEF_PARAM, 217 return bool(self.__flags & DEF_LOCAL)
|
/external/python/cpython3/Modules/ |
D | symtablemodule.c | 100 PyModule_AddIntMacro(m, DEF_LOCAL); in PyInit__symtable()
|
/external/python/cpython3/Python/ |
D | symtable.c | 1180 if (!symtable_add_def(st, s->v.FunctionDef.name, DEF_LOCAL)) in symtable_visit_stmt() 1202 if (!symtable_add_def(st, s->v.ClassDef.name, DEF_LOCAL)) in symtable_visit_stmt() 1252 DEF_ANNOT | DEF_LOCAL)) { in symtable_visit_stmt() 1257 && !symtable_add_def(st, e_name->v.Name.id, DEF_LOCAL)) { in symtable_visit_stmt() 1327 if (cur & (DEF_PARAM | DEF_LOCAL | USE | DEF_ANNOT)) { in symtable_visit_stmt() 1360 if (cur & (DEF_PARAM | DEF_LOCAL | USE | DEF_ANNOT)) { in symtable_visit_stmt() 1397 if (!symtable_add_def(st, s->v.AsyncFunctionDef.name, DEF_LOCAL)) in symtable_visit_stmt() 1478 return symtable_add_def_helper(st, target_name, DEF_LOCAL, ste); in symtable_extend_namedexpr_scope() 1649 e->v.Name.ctx == Load ? USE : DEF_LOCAL)) in symtable_visit_expr() 1769 if (!symtable_add_def(st, eh->v.ExceptHandler.name, DEF_LOCAL)) in symtable_visit_excepthandler()
|
/external/python/cpython2/Demo/pdist/ |
D | rcvs.py | 43 DEF_LOCAL = 1 # Default -l variable 408 local = DEF_LOCAL
|
/external/python/cpython2/Python/ |
D | symtable.c | 1011 if (!symtable_add_def(st, s->v.FunctionDef.name, DEF_LOCAL)) in symtable_visit_stmt() 1027 if (!symtable_add_def(st, s->v.ClassDef.name, DEF_LOCAL)) in symtable_visit_stmt() 1152 if (cur & (DEF_LOCAL | USE)) { in symtable_visit_stmt() 1154 if (cur & DEF_LOCAL) in symtable_visit_stmt() 1287 e->v.Name.ctx == Load ? USE : DEF_LOCAL)) in symtable_visit_expr() 1495 if (!symtable_add_def(st, tmp, DEF_LOCAL)) in symtable_new_tmpname()
|