]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38500: Add _PyInterpreterState_SetEvalFrameFunc() (GH-17340)
authorVictor Stinner <vstinner@python.org>
Thu, 12 Mar 2020 22:18:39 +0000 (23:18 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2020 22:18:39 +0000 (23:18 +0100)
commit0b72b23fb0c130279f65f3bcd23521acf4a98c88
tree2e2bbdef31294861783eeea4da94a02b8715f4c9
parentc846ef004d79ee8e9645d3e5e8b3b0cb97b5013f
bpo-38500: Add _PyInterpreterState_SetEvalFrameFunc() (GH-17340)

PyInterpreterState.eval_frame function now requires a tstate (Python
thread state) parameter.

Add private functions to the C API to get and set the frame
evaluation function:

* Add tstate parameter to _PyFrameEvalFunction function type.
* Add _PyInterpreterState_GetEvalFrameFunc() and
  _PyInterpreterState_SetEvalFrameFunc() functions.
* Add tstate parameter to _PyEval_EvalFrameDefault().
Doc/c-api/init.rst
Doc/whatsnew/3.9.rst
Include/cpython/ceval.h
Include/cpython/pystate.h
Include/internal/pycore_ceval.h
Include/internal/pycore_pystate.h
Misc/NEWS.d/next/C API/2019-11-22-14-06-28.bpo-38500.nPEdjH.rst [new file with mode: 0644]
Python/ceval.c
Python/pystate.c