summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/veryhigh.rst
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-05-22 19:34:34 (GMT)
committerGitHub <noreply@github.com>2023-05-22 19:34:34 (GMT)
commit357bed0bcd3c5d7c4a8caad451754a9a172aca3e (patch)
treec0f022e38113eba6b885873eff045eb5784c7d61 /Doc/c-api/veryhigh.rst
parent2c4e29e32260783207568dc8581d65f0022f773a (diff)
downloadcpython-357bed0bcd3c5d7c4a8caad451754a9a172aca3e.zip
cpython-357bed0bcd3c5d7c4a8caad451754a9a172aca3e.tar.gz
cpython-357bed0bcd3c5d7c4a8caad451754a9a172aca3e.tar.bz2
GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104674)
Diffstat (limited to 'Doc/c-api/veryhigh.rst')
-rw-r--r--Doc/c-api/veryhigh.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst
index 513856d..000a2d3 100644
--- a/Doc/c-api/veryhigh.rst
+++ b/Doc/c-api/veryhigh.rst
@@ -167,6 +167,10 @@ the same library that the Python runtime is using.
event loops, as done in the :file:`Modules/_tkinter.c` in the
Python source code.
+ .. versionchanged:: 3.12
+ This function is only called from the
+ :ref:`main interpreter <sub-interpreter-support>`.
+
.. c:var:: char* (*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, const char *)
@@ -187,6 +191,10 @@ the same library that the Python runtime is using.
:c:func:`PyMem_RawRealloc`, instead of being allocated by
:c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`.
+ .. versionchanged:: 3.12
+ This function is only called from the
+ :ref:`main interpreter <sub-interpreter-support>`.
+
.. c:function:: PyObject* PyRun_String(const char *str, int start, PyObject *globals, PyObject *locals)
This is a simplified interface to :c:func:`PyRun_StringFlags` below, leaving