diff options
author | Victor Stinner <vstinner@python.org> | 2025-03-20 12:35:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-20 11:35:23 +0000 |
commit | b69da006a4f493f1eec0df413f81fbfc3e366783 (patch) | |
tree | 06f936be9f5434ec4c9f10c7c43f681042e4a853 /Python/pylifecycle.c | |
parent | 34c1ea3109d750896bc27b575ebaec85a371d0ba (diff) | |
download | cpython-b69da006a4f493f1eec0df413f81fbfc3e366783.tar.gz cpython-b69da006a4f493f1eec0df413f81fbfc3e366783.zip |
gh-131238: Remove includes from pycore_interp.h (#131495)
Remove also now unused includes in C files.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 12a48316cbc..8fe58c320a3 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1,6 +1,8 @@ /* Python interpreter top-level routines, including init/exit */ #include "Python.h" +#include "pycore_genobject.h" // included first to break dependency cycle + #include "pycore_audit.h" // _PySys_ClearAuditHooks() #include "pycore_call.h" // _PyObject_CallMethod() #include "pycore_ceval.h" // _PyEval_FiniGIL() @@ -12,10 +14,7 @@ #include "pycore_floatobject.h" // _PyFloat_InitTypes() #include "pycore_freelist.h" // _PyObject_ClearFreeLists() #include "pycore_global_objects_fini_generated.h" // _PyStaticObjects_CheckRefcnt() -#include "pycore_hamt.h" // _PyHamt_Type -#include "pycore_import.h" // _PyImport_BootstrapImp() #include "pycore_initconfig.h" // _PyStatus_OK() -#include "pycore_list.h" // _PyList_Fini() #include "pycore_long.h" // _PyLong_InitTypes() #include "pycore_object.h" // _PyDebug_PrintTotalRefs() #include "pycore_obmalloc.h" // _PyMem_init_obmalloc() @@ -26,9 +25,7 @@ #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_runtime.h" // _Py_ID() #include "pycore_runtime_init.h" // _PyRuntimeState_INIT -#include "pycore_runtime_structs.h" #include "pycore_setobject.h" // _PySet_NextEntry() -#include "pycore_sliceobject.h" // _PySlice_Fini() #include "pycore_sysmodule.h" // _PySys_ClearAttrString() #include "pycore_traceback.h" // _Py_DumpTracebackThreads() #include "pycore_typeobject.h" // _PyTypes_InitTypes() |