Skip to content

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented May 5, 2023

This is the culmination of PEP 684 (and of my 8-year long multi-core Python project)!

Each subinterpreter may now be created with its own GIL (via Py_NewInterpreterFromConfig()). If not so configured then the interpreter will share with the main interpreter--the status quo since the subinterpreters were added decades ago. The main interpreter always has its own GIL and subinterpreters from Py_NewInterpreter() will always share with the main interpreter.

(FYI, I've split up the original gh-99114 into multiple PRs, with this one being the final one in the chain.)

@ericsnowcurrently
Copy link
Member Author

oops, this is the wrong branch

@ericsnowcurrently ericsnowcurrently deleted the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently ericsnowcurrently restored the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently ericsnowcurrently deleted the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently ericsnowcurrently restored the per-interpreter-gil-old branch May 5, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant