Skip to content

Commit ea36d03

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 869f1d8 commit ea36d03

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
@@ -1999,6 +1999,10 @@ pointer and a void pointer argument.
19991999
called from the main interpreter. Each subinterpreter now has its own
20002000
list of scheduled calls.
20012001
2002+
.. versionchanged:: 3.12
2003+
This function now always schedules *func* to be run in the main
2004+
interpreter.
2005+
20022006
.. _profiling:
20032007
20042008
Profiling and Tracing

0 commit comments

Comments
 (0)