diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-27 00:36:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 00:36:16 (GMT) |
commit | 8b9dbc017a190d13f717e714630d620adb7c7ac2 (patch) | |
tree | aec94454c3d4ee9f96f19d98eb64a9a9c5df7d97 /Include | |
parent | 6a258c88906a7e8acde455ee2acb78b6f315ea0b (diff) | |
download | cpython-8b9dbc017a190d13f717e714630d620adb7c7ac2.zip cpython-8b9dbc017a190d13f717e714630d620adb7c7ac2.tar.gz cpython-8b9dbc017a190d13f717e714630d620adb7c7ac2.tar.bz2 |
bpo-36444: Remove _PyMainInterpreterConfig (GH-12571)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/pylifecycle.h | 11 | ||||
-rw-r--r-- | Include/cpython/pystate.h | 23 | ||||
-rw-r--r-- | Include/internal/pycore_coreconfig.h | 5 | ||||
-rw-r--r-- | Include/internal/pycore_pystate.h | 1 |
4 files changed, 1 insertions, 39 deletions
diff --git a/Include/cpython/pylifecycle.h b/Include/cpython/pylifecycle.h index 0c5f74e..1db1d21 100644 --- a/Include/cpython/pylifecycle.h +++ b/Include/cpython/pylifecycle.h @@ -26,17 +26,8 @@ PyAPI_FUNC(_PyInitError) _Py_InitializeCore( PyAPI_FUNC(int) _Py_IsCoreInitialized(void); -PyAPI_FUNC(_PyInitError) _PyMainInterpreterConfig_Read( - _PyMainInterpreterConfig *config, - const _PyCoreConfig *core_config); -PyAPI_FUNC(void) _PyMainInterpreterConfig_Clear(_PyMainInterpreterConfig *); -PyAPI_FUNC(int) _PyMainInterpreterConfig_Copy( - _PyMainInterpreterConfig *config, - const _PyMainInterpreterConfig *config2); - PyAPI_FUNC(_PyInitError) _Py_InitializeMainInterpreter( - PyInterpreterState *interp, - const _PyMainInterpreterConfig *); + PyInterpreterState *interp); /* Initialization and finalization */ diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 5439d07..a0953f0 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -8,33 +8,10 @@ extern "C" { #include "cpython/coreconfig.h" -/* Placeholders while working on the new configuration API - * - * See PEP 432 for final anticipated contents - */ -typedef struct { - int install_signal_handlers; /* Install signal handlers? -1 means unset */ - PyObject *argv; /* sys.argv list, can be NULL */ - PyObject *executable; /* sys.executable str */ - PyObject *prefix; /* sys.prefix str */ - PyObject *base_prefix; /* sys.base_prefix str, can be NULL */ - PyObject *exec_prefix; /* sys.exec_prefix str */ - PyObject *base_exec_prefix; /* sys.base_exec_prefix str, can be NULL */ - PyObject *warnoptions; /* sys.warnoptions list, can be NULL */ - PyObject *xoptions; /* sys._xoptions dict, can be NULL */ - PyObject *module_search_path; /* sys.path list */ - PyObject *pycache_prefix; /* sys.pycache_prefix str, can be NULL */ -} _PyMainInterpreterConfig; - -#define _PyMainInterpreterConfig_INIT \ - (_PyMainInterpreterConfig){.install_signal_handlers = -1} -/* Note: _PyMainInterpreterConfig_INIT sets other fields to 0/NULL */ - PyAPI_FUNC(int) _PyInterpreterState_RequiresIDRef(PyInterpreterState *); PyAPI_FUNC(void) _PyInterpreterState_RequireIDRef(PyInterpreterState *, int); PyAPI_FUNC(_PyCoreConfig *) _PyInterpreterState_GetCoreConfig(PyInterpreterState *); -PyAPI_FUNC(_PyMainInterpreterConfig *) _PyInterpreterState_GetMainConfig(PyInterpreterState *); PyAPI_FUNC(PyObject *) _PyInterpreterState_GetMainModule(PyInterpreterState *); diff --git a/Include/internal/pycore_coreconfig.h b/Include/internal/pycore_coreconfig.h index dad5d3f..c5f39ba 100644 --- a/Include/internal/pycore_coreconfig.h +++ b/Include/internal/pycore_coreconfig.h @@ -104,11 +104,6 @@ PyAPI_FUNC(_PyInitError) _PyCoreConfig_Read(_PyCoreConfig *config, const _PyArgv *args); PyAPI_FUNC(void) _PyCoreConfig_Write(const _PyCoreConfig *config); -/* --- _PyMainInterpreterConfig ----------------------------------- */ - -PyAPI_FUNC(PyObject*) _PyMainInterpreterConfig_AsDict( - const _PyMainInterpreterConfig *config); - #ifdef __cplusplus } #endif diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index 27c6eea..df3730f 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -59,7 +59,6 @@ struct _is { int fscodec_initialized; _PyCoreConfig core_config; - _PyMainInterpreterConfig config; #ifdef HAVE_DLOPEN int dlopenflags; #endif |