commit | 0e427c6d159e86f17270770cd8dc37372e3c4004 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Wed Mar 25 21:22:55 2020 +0100 |
committer | GitHub <noreply@github.com> | Wed Mar 25 21:22:55 2020 +0100 |
tree | 6d2090b90405358e5fca7c5a6ceb023909b4362e | |
parent | 302e5a8f79514fd84bafbc44b7c97ec636302322 [diff] |
bpo-39947: Add _PyThreadState_GetDict() function (GH-19160)
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 4ea509d..2709727 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h
@@ -149,6 +149,8 @@ * if it is NULL. */ PyAPI_FUNC(PyThreadState *) _PyThreadState_UncheckedGet(void); +PyAPI_FUNC(PyObject *) _PyThreadState_GetDict(PyThreadState *tstate); + /* PyGILState */ /* Helper/diagnostic function - return 1 if the current thread