diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-07-27 21:30:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 21:30:16 (GMT) |
commit | 8bdae1424b54e5106782f2b9e2fadce444dc84cd (patch) | |
tree | 46aaf156abbf2f6a28235a824009365f4c53dd96 /Include/cpython/pystate.h | |
parent | 75c974f5353685f338344618ad7344e64c2293d0 (diff) | |
download | cpython-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.h | 1 |
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 */ |