New submission from Eric Snow <ericsnowcurren...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36818>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to