Skip to content

Commit 89ff88b

Browse files
Document Py_AddPendingCall() change with subinterpreters in 3.12 (GH-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 GH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter.
1 parent 571210b commit 89ff88b

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
@@ -1834,6 +1834,10 @@ pointer and a void pointer argument.
18341834
called from the main interpreter. Each subinterpreter now has its own
18351835
list of scheduled calls.
18361836
1837+
.. versionchanged:: 3.12
1838+
This function now always schedules *func* to be run in the main
1839+
interpreter.
1840+
18371841
.. _profiling:
18381842
18391843
Profiling and Tracing

0 commit comments

Comments
 (0)