summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-25 20:22:55 (GMT)
committerGitHub <noreply@github.com>2020-03-25 20:22:55 (GMT)
commit0e427c6d159e86f17270770cd8dc37372e3c4004 (patch)
tree6d2090b90405358e5fca7c5a6ceb023909b4362e /Include/cpython
parent302e5a8f79514fd84bafbc44b7c97ec636302322 (diff)
downloadcpython-0e427c6d159e86f17270770cd8dc37372e3c4004.zip
cpython-0e427c6d159e86f17270770cd8dc37372e3c4004.tar.gz
cpython-0e427c6d159e86f17270770cd8dc37372e3c4004.tar.bz2
bpo-39947: Add _PyThreadState_GetDict() function (GH-19160)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/pystate.h2
1 files changed, 2 insertions, 0 deletions
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 @@ PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *);
* 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