File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ Unless using PEP 523, you will not need this.
143
143
The interpreter's internal frame representation.
144
144
145
145
146
- .. c :function :: PyCodeObject * PyUnstable_InterpreterFrame_GetCode (struct _PyInterpreterFrame *frame);
146
+ .. c :function :: PyObject * PyUnstable_InterpreterFrame_GetCode (struct _PyInterpreterFrame *frame);
147
147
148
148
Return a :term: `strong reference ` to the code object for the frame.
149
149
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *);
35
35
36
36
/* Returns the code object of the frame (strong reference).
37
37
* Does not raise an exception. */
38
- PyAPI_FUNC (PyCodeObject * ) PyUnstable_InterpreterFrame_GetCode (struct _PyInterpreterFrame * frame );
38
+ PyAPI_FUNC (PyObject * ) PyUnstable_InterpreterFrame_GetCode (struct _PyInterpreterFrame * frame );
39
39
40
40
/* Returns a byte ofsset into the last executed instruction.
41
41
* Does not raise an exception. */
Original file line number Diff line number Diff line change @@ -146,10 +146,10 @@ _PyFrame_ClearExceptCode(_PyInterpreterFrame *frame)
146
146
147
147
/* Unstable API functions */
148
148
149
- PyCodeObject *
149
+ PyObject *
150
150
PyUnstable_InterpreterFrame_GetCode (struct _PyInterpreterFrame * frame )
151
151
{
152
- PyCodeObject * code = frame -> f_code ;
152
+ PyObject * code = ( PyObject * ) frame -> f_code ;
153
153
Py_INCREF (code );
154
154
return code ;
155
155
}
You can’t perform that action at this time.
0 commit comments