diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-02-28 21:16:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 21:16:39 (GMT) |
commit | 880437d4ec65ef35d505eeaff9dad5c6654dbc1a (patch) | |
tree | 1dee8a4dcc709b6b9f99d025cddbe3fe14ceadd5 /Include | |
parent | f300a1fa4c121f7807cbda4fc8bb26240c69ea74 (diff) | |
download | cpython-880437d4ec65ef35d505eeaff9dad5c6654dbc1a.zip cpython-880437d4ec65ef35d505eeaff9dad5c6654dbc1a.tar.gz cpython-880437d4ec65ef35d505eeaff9dad5c6654dbc1a.tar.bz2 |
gh-100227: Move _str_replace_inf to PyInterpreterState (gh-102333)
https://github.com/python/cpython/issues/100227
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_global_objects.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Include/internal/pycore_global_objects.h b/Include/internal/pycore_global_objects.h index d0461fa..30c7c4e 100644 --- a/Include/internal/pycore_global_objects.h +++ b/Include/internal/pycore_global_objects.h @@ -27,8 +27,6 @@ extern "C" { _PyRuntime.cached_objects.NAME struct _Py_cached_objects { - PyObject *str_replace_inf; - PyObject *interned_strings; }; @@ -67,11 +65,14 @@ struct _Py_static_objects { (interp)->cached_objects.NAME struct _Py_interp_cached_objects { - int _not_set; + /* AST */ + PyObject *str_replace_inf; + /* object.__reduce__ */ PyObject *objreduce; PyObject *type_slots_pname; pytype_slotdef *type_slots_ptrs[MAX_EQUIV]; + }; #define _Py_INTERP_STATIC_OBJECT(interp, NAME) \ |