commit | 0b72b23fb0c130279f65f3bcd23521acf4a98c88 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Thu Mar 12 23:18:39 2020 +0100 |
committer | GitHub <noreply@github.com> | Thu Mar 12 23:18:39 2020 +0100 |
tree | 2e2bbdef31294861783eeea4da94a02b8715f4c9 | |
parent | c846ef004d79ee8e9645d3e5e8b3b0cb97b5013f [diff] |
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().