[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

Mark Shannon report at bugs.python.org
Tue Mar 17 11:10:36 EDT 2020


Mark Shannon <mark at hotpy.org> added the comment:

Instead of passing `_PyRuntimeState` around everywhere, why not just let it disappear in time.

Currently `_PyRuntimeState` manages "global" state, mainly the GIL and some config.
Once the GIL has been migrated to the sub-interpreters, the config part can be factored out and `_PyRuntimeState` can just disappear.

----------
nosy: +Mark.Shannon

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36710>
_______________________________________


More information about the Python-bugs-list mailing list