diff options
author | Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> | 2019-09-05 16:06:49 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-09-05 16:06:49 (GMT) |
commit | 2bc43cdc015eda4f1a651bb2b308a17a83c38e14 (patch) | |
tree | 1a3a998656035eedb1e30c033f7fc3bb3156cdd9 /Include | |
parent | 2c2b561967c1916855399f809e30ae0ba7e09ae2 (diff) | |
download | cpython-2bc43cdc015eda4f1a651bb2b308a17a83c38e14.zip cpython-2bc43cdc015eda4f1a651bb2b308a17a83c38e14.tar.gz cpython-2bc43cdc015eda4f1a651bb2b308a17a83c38e14.tar.bz2 |
bpo-37878: Remove PyThreadState_DeleteCurrent() function (GH-15315)
* Rename PyThreadState_DeleteCurrent()
to _PyThreadState_DeleteCurrent()
* Move it to the internal C API
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 2 | ||||
-rw-r--r-- | Include/pystate.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index 7ea4488..cf844cc 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -110,6 +110,8 @@ PyAPI_FUNC(void) _PyErr_Print(PyThreadState *tstate); PyAPI_FUNC(void) _PyErr_Display(PyObject *file, PyObject *exception, PyObject *value, PyObject *tb); +PyAPI_FUNC(void) _PyThreadState_DeleteCurrent(_PyRuntimeState *runtime); + #ifdef __cplusplus } #endif diff --git a/Include/pystate.h b/Include/pystate.h index 4c25e3f..1cb2305 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -50,7 +50,6 @@ PyAPI_FUNC(PyObject*) PyState_FindModule(struct PyModuleDef*); PyAPI_FUNC(PyThreadState *) PyThreadState_New(PyInterpreterState *); PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *); PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *); -PyAPI_FUNC(void) PyThreadState_DeleteCurrent(void); /* Get the current thread state. |