[issue36818] Add PyInterpreterState.runtime.

Eric Snow report at bugs.python.org
Mon May 6 14:45:44 EDT 2019


New submission from Eric Snow <ericsnowcurrently at gmail.com>:

Currently we use the _PyRuntime static global to access the runtime state in various places.  At the same time, in thread contexts we get access to the thread state from Thread-Local Storage and the interpreter state by indirection from there.  We should do the same for the runtime state instead of using the global directly.

My plan is to add a PyInterpreterState.runtime field.  It can then be used in the same way we use PyThreadState.interp to access the interpreter state.

----------
assignee: eric.snow
components: Interpreter Core
messages: 341595
nosy: eric.snow, vstinner
priority: normal
severity: normal
stage: patch review
status: open
title: Add PyInterpreterState.runtime.
versions: Python 3.8

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


More information about the Python-bugs-list mailing list