diff options
author | Mark Shannon <mark@hotpy.org> | 2023-05-18 09:10:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 09:10:15 (GMT) |
commit | cfa517d5a68bae24cbe8d9fe6b8e0d4935e507d2 (patch) | |
tree | c25c67c7ba5b46b22884fc04f62b4429443c99e5 /Include | |
parent | 68b5f08b72e02f62ec787bfbb7aa99bac661daec (diff) | |
download | cpython-cfa517d5a68bae24cbe8d9fe6b8e0d4935e507d2.zip cpython-cfa517d5a68bae24cbe8d9fe6b8e0d4935e507d2.tar.gz cpython-cfa517d5a68bae24cbe8d9fe6b8e0d4935e507d2.tar.bz2 |
GH-96803: Document and test new unstable internal frame API functions (GH-104211)
Weaken contract of PyUnstable_InterpreterFrame_GetCode to return PyObject*.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/frameobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/frameobject.h b/Include/cpython/frameobject.h index 6f3efe3..a3dc666 100644 --- a/Include/cpython/frameobject.h +++ b/Include/cpython/frameobject.h @@ -35,7 +35,7 @@ PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *); /* Returns the code object of the frame (strong reference). * Does not raise an exception. */ -PyAPI_FUNC(PyCodeObject *) PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame); +PyAPI_FUNC(PyObject *) PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame); /* Returns a byte ofsset into the last executed instruction. * Does not raise an exception. */ |