]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117)
authorPeter Bierma <zintensitydev@gmail.com>
Thu, 18 Sep 2025 12:10:41 +0000 (08:10 -0400)
committerGitHub <noreply@github.com>
Thu, 18 Sep 2025 12:10:41 +0000 (12:10 +0000)
Prior to 3.9, Py_AddPendingCall() would always run pending calls in the main interpreter, but then each interpreter got their own ceval state, and they were scheduled for any interpreter. In GH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter.

Doc/c-api/init.rst

index 199b64387266bf3b1e95d626609e5160a40abf3a..4b8884f48e8b286db2646abdeeda8a1dd98c74af 100644 (file)
@@ -1834,6 +1834,10 @@ pointer and a void pointer argument.
       called from the main interpreter. Each subinterpreter now has its own
       list of scheduled calls.
 
+   .. versionchanged:: 3.12
+      This function now always schedules *func* to be run in the main
+      interpreter.
+
 .. _profiling:
 
 Profiling and Tracing