Skip to content

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

4 participants