mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +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
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue