Rename "own_gil" Field of PyInterpreterConfig to "gil" #105603
Labels
3.12
only security fixes
3.13
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-C-API
topic-subinterpreters
type-feature
A feature request or enhancement
We've added the
PyInterpreterConfig
struct in 3.12. For PEP 684 (per-interpreter GIL), likewise 3.12, we added a new int-boolean field, "own_gil", to indicate ifPyInterpreterState.ceval.gil
should point to the interpreter's own GIL.Having finally just read through PEP 703 (no-gil), I realized that it would probably be useful to change that field to support a number of different values, rather than just a binary situation. Consequently, I'm proposing we change the field as follows (more or less):
That would give us more flexibility for other possible future scenarios (e.g. no-gil), where "own_gil" wouldn't make sense.
Changing this in 3.12, even though we're past feature freeze, would be good so we don't have to live with a deprecated field in the struct. I'd be surprised if anyone was really using
PyInterpreterConfig
yet, and the change will be very focused, so we should be okay to make this change so late in the game.CC @Yhg1s
Linked PRs
The text was updated successfully, but these errors were encountered: