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
Attempt to fix rst formatting.
  • Loading branch information
markshannon committed Sep 15, 2022
commit fea57fbd53a15bbeb9a76def776a383a03188a71
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Expose C-API functions to get the code object, lasti and line number from
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this needs a news entry since the functions are exposed technically on a private header.

the internal ``_PyInterpreterFrame`` in the limited API. The functions are:

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