mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-96803: Document and test new unstable internal frame API functions (GH-104211)
Weaken contract of PyUnstable_InterpreterFrame_GetCode to return PyObject*.
This commit is contained in:
parent
68b5f08b72
commit
cfa517d5a6
5 changed files with 98 additions and 3 deletions
|
@ -146,10 +146,10 @@ _PyFrame_ClearExceptCode(_PyInterpreterFrame *frame)
|
|||
|
||||
/* Unstable API functions */
|
||||
|
||||
PyCodeObject *
|
||||
PyObject *
|
||||
PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame)
|
||||
{
|
||||
PyCodeObject *code = frame->f_code;
|
||||
PyObject *code = (PyObject *)frame->f_code;
|
||||
Py_INCREF(code);
|
||||
return code;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue