Skip to content

Commit a1ca2f5

Browse files
ZeroIntensitymiss-islington
authored andcommitted
Document Py_AddPendingCall() change with subinterpreters in 3.12 (pythonGH-139117)
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 pythonGH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter. (cherry picked from commit 89ff88b) Co-authored-by: Peter Bierma <[email protected]>
1 parent 3b24402 commit a1ca2f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/c-api/init.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,6 +1944,10 @@ pointer and a void pointer argument.
19441944
called from the main interpreter. Each subinterpreter now has its own
19451945
list of scheduled calls.
19461946
1947+
.. versionchanged:: 3.12
1948+
This function now always schedules *func* to be run in the main
1949+
interpreter.
1950+
19471951
.. _profiling:
19481952
19491953
Profiling and Tracing

0 commit comments

Comments
 (0)