diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-12-15 00:46:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 00:46:02 (GMT) |
commit | da273412c4374de07a500e7f23f89a6bb7527398 (patch) | |
tree | 86f8e89fa317de8ab4d8f06166a934e6810cc3d3 /Include/pylifecycle.h | |
parent | 358e5e17a51ba00742bfaee4557a94c3c4179c22 (diff) | |
download | cpython-da273412c4374de07a500e7f23f89a6bb7527398.zip cpython-da273412c4374de07a500e7f23f89a6bb7527398.tar.gz cpython-da273412c4374de07a500e7f23f89a6bb7527398.tar.bz2 |
bpo-32030: Add _PyCoreConfig_Copy() (#4874)
Each interpreter now has its core_config and main_config copy:
* Add _PyCoreConfig_Copy() and _PyMainInterpreterConfig_Copy()
* Move _PyCoreConfig_Read(), _PyCoreConfig_Clear() and
_PyMainInterpreterConfig_Clear() from Python/pylifecycle.c to
Modules/main.c
* Fix _Py_InitializeEx_Private(): call _PyCoreConfig_ReadEnv() before
_Py_InitializeCore()
Diffstat (limited to 'Include/pylifecycle.h')
-rw-r--r-- | Include/pylifecycle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h index 0416bfa..39339da 100644 --- a/Include/pylifecycle.h +++ b/Include/pylifecycle.h @@ -57,9 +57,15 @@ PyAPI_FUNC(int) _Py_IsCoreInitialized(void); PyAPI_FUNC(_PyInitError) _PyCoreConfig_ReadEnv(_PyCoreConfig *); PyAPI_FUNC(_PyInitError) _PyCoreConfig_Read(_PyCoreConfig *); PyAPI_FUNC(void) _PyCoreConfig_Clear(_PyCoreConfig *); +PyAPI_FUNC(int) _PyCoreConfig_Copy( + _PyCoreConfig *config, + const _PyCoreConfig *config2); PyAPI_FUNC(_PyInitError) _PyMainInterpreterConfig_Read(_PyMainInterpreterConfig *, _PyCoreConfig *); PyAPI_FUNC(void) _PyMainInterpreterConfig_Clear(_PyMainInterpreterConfig *); +PyAPI_FUNC(int) _PyMainInterpreterConfig_Copy( + _PyMainInterpreterConfig *config, + const _PyMainInterpreterConfig *config2); PyAPI_FUNC(_PyInitError) _Py_InitializeMainInterpreter(const _PyMainInterpreterConfig *); #endif |