summaryrefslogtreecommitdiffstats
path: root/Include/cpython/pystate.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-07-27 21:30:16 (GMT)
committerGitHub <noreply@github.com>2023-07-27 21:30:16 (GMT)
commit8bdae1424b54e5106782f2b9e2fadce444dc84cd (patch)
tree46aaf156abbf2f6a28235a824009365f4c53dd96 /Include/cpython/pystate.h
parent75c974f5353685f338344618ad7344e64c2293d0 (diff)
downloadcpython-8bdae1424b54e5106782f2b9e2fadce444dc84cd.zip
cpython-8bdae1424b54e5106782f2b9e2fadce444dc84cd.tar.gz
cpython-8bdae1424b54e5106782f2b9e2fadce444dc84cd.tar.bz2
gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-107359)
The _xxsubinterpreters module should not rely on internal API. Some of the functions it uses were recently moved there however. Here we move them back (and expose them properly).
Diffstat (limited to 'Include/cpython/pystate.h')
-rw-r--r--Include/cpython/pystate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h
index 4254110..30de4ee 100644
--- a/Include/cpython/pystate.h
+++ b/Include/cpython/pystate.h
@@ -8,6 +8,7 @@
PyAPI_FUNC(int) _PyInterpreterState_RequiresIDRef(PyInterpreterState *);
PyAPI_FUNC(void) _PyInterpreterState_RequireIDRef(PyInterpreterState *, int);
+PyAPI_FUNC(PyObject *) PyUnstable_InterpreterState_GetMainModule(PyInterpreterState *);
/* State unique per thread */