Lines Matching full:locals
632 /* locals */ in frame_traverse()
661 /* locals */ in frame_tp_clear()
867 PyObject *globals, PyObject *locals) in _PyFrame_New_NoTrack() argument
871 (locals != NULL && !PyMapping_Check(locals))) { in _PyFrame_New_NoTrack()
901 locals = PyDict_New(); in _PyFrame_New_NoTrack()
902 if (locals == NULL) { in _PyFrame_New_NoTrack()
906 f->f_locals = locals; in _PyFrame_New_NoTrack()
909 if (locals == NULL) in _PyFrame_New_NoTrack()
910 locals = globals; in _PyFrame_New_NoTrack()
911 Py_INCREF(locals); in _PyFrame_New_NoTrack()
912 f->f_locals = locals; in _PyFrame_New_NoTrack()
930 PyObject *globals, PyObject *locals) in PyFrame_New() argument
932 PyFrameObject *f = _PyFrame_New_NoTrack(tstate, code, globals, locals); in PyFrame_New()
965 /* Convert between "fast" version of locals and dictionary version.
1010 /* Copy values from the "locals" dict into the fast locals.
1066 /* Merge fast locals into f->f_locals */ in PyFrame_FastToLocalsWithError()
1067 PyObject *locals, *map; in PyFrame_FastToLocalsWithError() local
1077 locals = f->f_locals; in PyFrame_FastToLocalsWithError()
1078 if (locals == NULL) { in PyFrame_FastToLocalsWithError()
1079 locals = f->f_locals = PyDict_New(); in PyFrame_FastToLocalsWithError()
1080 if (locals == NULL) in PyFrame_FastToLocalsWithError()
1096 if (map_to_dict(map, j, locals, fast, 0) < 0) in PyFrame_FastToLocalsWithError()
1103 locals, fast + co->co_nlocals, 1)) in PyFrame_FastToLocalsWithError()
1112 into the locals dict used by the class. in PyFrame_FastToLocalsWithError()
1116 locals, fast + co->co_nlocals + ncells, 1) < 0) in PyFrame_FastToLocalsWithError()
1138 /* Merge f->f_locals into fast locals */ in PyFrame_LocalsToFast()
1139 PyObject *locals, *map; in PyFrame_LocalsToFast() local
1147 locals = f->f_locals; in PyFrame_LocalsToFast()
1150 if (locals == NULL) in PyFrame_LocalsToFast()
1160 dict_to_map(co->co_varnames, j, locals, fast, 0, clear); in PyFrame_LocalsToFast()
1165 locals, fast + co->co_nlocals, 1, clear); in PyFrame_LocalsToFast()
1169 locals, fast + co->co_nlocals + ncells, 1, in PyFrame_LocalsToFast()