mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
gh-81057: Move contextvars-related Globals to _PyRuntimeState (gh-99400)
This is part of the effort to consolidate global variables, to make them easier to manage (and make it easier to later move some of them to PyInterpreterState). https://github.com/python/cpython/issues/81057
This commit is contained in:
parent
5f55067e23
commit
01fa907aa8
9 changed files with 82 additions and 90 deletions
|
@ -127,6 +127,9 @@ NON_GENERATED_IMMORTAL_OBJECTS = [
|
|||
# The generated ones come from generate_runtime_init().
|
||||
'(PyObject *)&_Py_SINGLETON(bytes_empty)',
|
||||
'(PyObject *)&_Py_SINGLETON(tuple_empty)',
|
||||
'(PyObject *)&_Py_SINGLETON(hamt_bitmap_node_empty)',
|
||||
'(PyObject *)&_Py_INTERP_SINGLETON(interp, hamt_empty)',
|
||||
'(PyObject *)&_Py_SINGLETON(context_token_missing)',
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue