summaryrefslogtreecommitdiffstats
path: root/Misc
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 /Misc
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 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2023-05-19-10-22-34.gh-issue-104668.MLX1g9.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-05-19-10-22-34.gh-issue-104668.MLX1g9.rst b/Misc/NEWS.d/next/C API/2023-05-19-10-22-34.gh-issue-104668.MLX1g9.rst
new file mode 100644
index 0000000..7b882af
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2023-05-19-10-22-34.gh-issue-104668.MLX1g9.rst
@@ -0,0 +1,5 @@
+Don't call :c:var:`PyOS_InputHook` or :c:var:`PyOS_ReadlineFunctionPointer`
+in subinterpreters, since it's generally difficult to avoid using global
+state in their registered callbacks. This also avoids situations where
+extensions may find themselves running in a subinterpreter they don't
+support (or haven't yet been loaded in).