Skip to content

bpo-38500: Add PyInterpreterState_SetEvalFrameFunc() #17352

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

Closed
wants to merge 3 commits into from
Closed

bpo-38500: Add PyInterpreterState_SetEvalFrameFunc() #17352

wants to merge 3 commits into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 22, 2019

Add a public API to get and set the frame evaluation function:

  • Rename the internal _PyFrameEvalFunction type to
    PyFrameEvalFunction and make it public
  • Add PyInterpreterState_GetEvalFrameFunc() and
    PyInterpreterState_SetEvalFrameFunc() functions

bpo-38818: PyInterpreterState.eval_frame now pass tstate

PyInterpreterState.eval_frame (PEP 523) now requires a new mandatory
tstate parameter (PyThreadState*).

https://bugs.python.org/issue38500

@vstinner
Copy link
Member Author

This is PR #17340 merged with PR #17187: add PyInterpreterState_SetEvalFrameFunc() and add tstate parameter to eval_frame.

Add a public API to get and set the frame evaluation function:

* Rename the internal _PyFrameEvalFunction type to
  PyFrameEvalFunction and make it public
* Add PyInterpreterState_GetEvalFrameFunc() and
  PyInterpreterState_SetEvalFrameFunc() functions
PyInterpreterState.eval_frame (PEP 523) now requires a new mandatory
tstate parameter (PyThreadState*).
@vstinner
Copy link
Member Author

Rebase to fix a conflict.

@vstinner
Copy link
Member Author

I abandon this PR in favor of PR #17340.

@vstinner vstinner closed this Mar 10, 2020
@vstinner vstinner deleted the set_eval_frame_tstate branch March 10, 2020 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants