8000 GH-96803: Add three C-API functions to make _PyInterpreterFrame less opaque for users of PEP 523. by markshannon · Pull Request #96849 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-96803: Add three C-API functions to make _PyInterpreterFrame less opaque for users of PEP 523. #96849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 5, 2023
Prev Previous commit
Next Next commit
Update news item
  • Loading branch information
markshannon committed May 4, 2023
commit 19bc82e62efb4572893bb1c46af56552e248a150
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Expose C-API functions to get the code object, lasti and line number from
Add unstable C-API functions to get the code object, lasti and line number from
the internal ``_PyInterpreterFrame`` in the limited API. The functions are:

* ``PyCodeObject * _PyInterpreterFrame_GetCode(struct _PyInterpreterFrame *frame)``
* ``int _PyInterpreterFrame_GetLasti(struct _PyInterpreterFrame *frame)``
* ``int _PyInterpreterFrame_GetLine(struct _PyInterpreterFrame *frame)``
* ``PyCodeObject * PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame)``
* ``int PyUnstable_InterpreterFrame_GetLasti(struct _PyInterpreterFrame *frame)``
* ``int PyUnstable_InterpreterFrame_GetLine(struct _PyInterpreterFrame *frame)``
0