Visitar URL original
[3.14] Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117) by miss-islington · Pull Request #139118 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20251003153142/https://github.com/python/cpython/pull/139118
Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 18, 2025 •

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.
(cherry picked from commit 89ff88b)

Co-authored-by: Peter Bierma zintensitydev@gmail.com


📚 Documentation preview 📚: https://cpython-previews--139118.org.readthedocs.build/

…ythonGH-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 <zintensitydev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants