Lines Matching defs:frame
5221 *before* we enter the generator frame, which is impossible in Python
5897 PyFrameObject*frame = PyThreadState_GetFrame(tstate);
5898 assert(frame != NULL);
5899 assert(PyFrame_Check(frame));
5900 Py_DECREF(frame);
5989 frame_getlocals(PyObject *self, PyObject *frame)
5991 if (!PyFrame_Check(frame)) {
5992 PyErr_SetString(PyExc_TypeError, "argument must be a frame");
5995 return PyFrame_GetLocals((PyFrameObject *)frame);
5999 frame_getglobals(PyObject *self, PyObject *frame)
6001 if (!PyFrame_Check(frame)) {
6002 PyErr_SetString(PyExc_TypeError, "argument must be a frame");
6005 return PyFrame_GetGlobals((PyFrameObject *)frame);
6009 frame_getgenerator(PyObject *self, PyObject *frame)
6011 if (!PyFrame_Check(frame)) {
6012 PyErr_SetString(PyExc_TypeError, "argument must be a frame");
6015 return PyFrame_GetGenerator((PyFrameObject *)frame);
6019 frame_getbuiltins(PyObject *self, PyObject *frame)
6021 if (!PyFrame_Check(frame)) {
6022 PyErr_SetString(PyExc_TypeError, "argument must be a frame");
6025 return PyFrame_GetBuiltins((PyFrameObject *)frame);
6029 frame_getlasti(PyObject *self, PyObject *frame)
6031 if (!PyFrame_Check(frame)) {
6032 PyErr_SetString(PyExc_TypeError, "argument must be a frame");
6035 int lasti = PyFrame_GetLasti((PyFrameObject *)frame);