diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-26 21:32:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 21:32:00 (GMT) |
commit | c052b192aaa05eeedb1bd50e0658e2d836ffa581 (patch) | |
tree | e1be65bbf070f16e1299c6542588ff78984fd484 /Modules | |
parent | bc515b332bef0eaa3064d3b912ad660932ad8c90 (diff) | |
download | cpython-c052b192aaa05eeedb1bd50e0658e2d836ffa581.zip cpython-c052b192aaa05eeedb1bd50e0658e2d836ffa581.tar.gz cpython-c052b192aaa05eeedb1bd50e0658e2d836ffa581.tar.bz2 |
[3.13] gh-120838: Add _PyThreadState_WHENCE_FINI (gh-121013)
We also add _PyThreadState_NewBound() and drop _PyThreadState_SetWhence().
This change only affects internal API.
(cherry picked from commit a905721b9c5c15279e67c2f7785034b7356b2d46, AKA gh-121010)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testinternalcapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c index 5055bca..6185fa3 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -1585,8 +1585,8 @@ exec_interpreter(PyObject *self, PyObject *args, PyObject *kwargs) } PyObject *res = NULL; - PyThreadState *tstate = PyThreadState_New(interp); - _PyThreadState_SetWhence(tstate, _PyThreadState_WHENCE_EXEC); + PyThreadState *tstate = + _PyThreadState_NewBound(interp, _PyThreadState_WHENCE_EXEC); PyThreadState *save_tstate = PyThreadState_Swap(tstate); |