Lines Matching refs:frame
878 /// Return a dictionary representing the global variables in the current execution frame,
879 /// or ``__main__.__dict__`` if there is no frame (usually when the interpreter is embedded).
2046 PyFrameObject *frame = PyThreadState_Get()->frame;
2047 if (frame && (std::string) str(frame->f_code->co_name) == name &&
2048 frame->f_code->co_argcount > 0) {
2049 PyFrame_FastToLocals(frame);
2051 frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
2057 frame objects, so we have to emulate this using Python. This
2062 "frame = inspect.currentframe()\n"
2063 "if frame is not None:\n"
2064 " frame = frame.f_back\n"
2065 " if frame is not None and str(frame.f_code.co_name) == name and "
2066 "frame.f_code.co_argcount > 0:\n"
2067 " self_caller = frame.f_locals[frame.f_code.co_varnames[0]]\n"