mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-81057: Move Global Variables Holding Objects to _PyRuntimeState. (gh-99487)
This moves nearly all remaining object-holding globals in core code (other than static types). https://github.com/python/cpython/issues/81057
This commit is contained in:
parent
619cadcda6
commit
a088290f9d
10 changed files with 66 additions and 55 deletions
|
@ -13,7 +13,7 @@ _Py_DECLARE_STR(open_br, "{");
|
|||
_Py_DECLARE_STR(dbl_open_br, "{{");
|
||||
_Py_DECLARE_STR(close_br, "}");
|
||||
_Py_DECLARE_STR(dbl_close_br, "}}");
|
||||
static PyObject *_str_replace_inf;
|
||||
#define _str_replace_inf _Py_CACHED_OBJECT(str_replace_inf)
|
||||
|
||||
/* Forward declarations for recursion via helper functions. */
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue