]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39984: Add PyInterpreterState.ceval (GH-19047)
authorVictor Stinner <vstinner@python.org>
Tue, 17 Mar 2020 17:56:44 +0000 (18:56 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2020 17:56:44 +0000 (18:56 +0100)
commitdab8423d220243efabbbcafafc12d90145539b50
treeea5292be67fbb841bf16c76099a4b51c0871afd3
parent514c469719f149e1722a91a9d0c63bf89dfefb2a
bpo-39984: Add PyInterpreterState.ceval (GH-19047)

subinterpreters: Move _PyRuntimeState.ceval.tracing_possible to
PyInterpreterState.ceval.tracing_possible: each interpreter now has
its own variable.

Changes:

* Add _ceval_state structure.
* Add PyInterpreterState.ceval field.
* _PyEval_EvalFrameDefault(): add ceval2 variable (struct _ceval_state*).
* Rename _PyEval_Initialize() to _PyEval_InitRuntimeState().
* Add _PyEval_InitState().
* Don't export internal _Py_FinishPendingCalls() and
  _PyEval_FiniThreads() functions anymore.
Include/internal/pycore_ceval.h
Include/internal/pycore_pystate.h
Misc/NEWS.d/next/Core and Builtins/2020-03-17-01-55-33.bpo-39984.y5Chgb.rst [new file with mode: 0644]
Python/ceval.c
Python/pystate.c