Lines Matching defs:locals
30 PyObject *locals = f->f_frame->f_locals;
31 Py_INCREF(locals);
32 return locals;
873 PyObject **locals = _PyFrame_GetLocalsArray(frame);
875 Py_CLEAR(locals[i]);
902 /* locals and stack */
903 PyObject **locals = _PyFrame_GetLocalsArray(f->f_frame);
906 Py_CLEAR(locals[i]);
1007 init_frame(_PyInterpreterFrame *frame, PyFunctionObject *func, PyObject *locals)
1012 _PyFrame_InitializeSpecials(frame, func, locals, code->co_nlocalsplus);
1040 PyObject *globals, PyObject *locals)
1065 init_frame((_PyInterpreterFrame *)f->_f_frame_data, func, locals);
1103 /* Merge fast locals into f->f_locals */
1104 PyObject *locals;
1107 locals = frame->f_locals;
1108 if (locals == NULL) {
1109 locals = frame->f_locals = PyDict_New();
1110 if (locals == NULL)
1140 into the locals dict used by the class.
1176 if (PyObject_DelItem(locals, name) != 0) {
1186 if (PyObject_SetItem(locals, name, value) != 0) {
1224 /* Merge locals into fast locals */
1225 PyObject *locals;
1229 locals = frame->f_locals;
1230 if (locals == NULL) {
1245 PyObject *value = PyObject_GetItem(locals, name);