Lines Matching full:locals
512 /* locals */ in frame_traverse()
543 /* locals */ in frame_tp_clear()
658 PyObject *globals, PyObject *locals) in _PyFrame_New_NoTrack() argument
667 (locals != NULL && !PyMapping_Check(locals))) { in _PyFrame_New_NoTrack()
757 locals = PyDict_New(); in _PyFrame_New_NoTrack()
758 if (locals == NULL) { in _PyFrame_New_NoTrack()
762 f->f_locals = locals; in _PyFrame_New_NoTrack()
765 if (locals == NULL) in _PyFrame_New_NoTrack()
766 locals = globals; in _PyFrame_New_NoTrack()
767 Py_INCREF(locals); in _PyFrame_New_NoTrack()
768 f->f_locals = locals; in _PyFrame_New_NoTrack()
784 PyObject *globals, PyObject *locals) in PyFrame_New() argument
786 PyFrameObject *f = _PyFrame_New_NoTrack(tstate, code, globals, locals); in PyFrame_New()
817 /* Convert between "fast" version of locals and dictionary version.
862 /* Copy values from the "locals" dict into the fast locals.
918 /* Merge fast locals into f->f_locals */ in PyFrame_FastToLocalsWithError()
919 PyObject *locals, *map; in PyFrame_FastToLocalsWithError() local
929 locals = f->f_locals; in PyFrame_FastToLocalsWithError()
930 if (locals == NULL) { in PyFrame_FastToLocalsWithError()
931 locals = f->f_locals = PyDict_New(); in PyFrame_FastToLocalsWithError()
932 if (locals == NULL) in PyFrame_FastToLocalsWithError()
948 if (map_to_dict(map, j, locals, fast, 0) < 0) in PyFrame_FastToLocalsWithError()
955 locals, fast + co->co_nlocals, 1)) in PyFrame_FastToLocalsWithError()
964 into the locals dict used by the class. in PyFrame_FastToLocalsWithError()
968 locals, fast + co->co_nlocals + ncells, 1) < 0) in PyFrame_FastToLocalsWithError()
990 /* Merge f->f_locals into fast locals */ in PyFrame_LocalsToFast()
991 PyObject *locals, *map; in PyFrame_LocalsToFast() local
999 locals = f->f_locals; in PyFrame_LocalsToFast()
1002 if (locals == NULL) in PyFrame_LocalsToFast()
1012 dict_to_map(co->co_varnames, j, locals, fast, 0, clear); in PyFrame_LocalsToFast()
1017 locals, fast + co->co_nlocals, 1, clear); in PyFrame_LocalsToFast()
1021 locals, fast + co->co_nlocals + ncells, 1, in PyFrame_LocalsToFast()