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.
This commit is contained in:
Peter Bierma 2025-09-18 08:10:41 -04:00 committed by GitHub
parent 571210b8f3
commit 89ff88be89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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