diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-25 17:37:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 17:37:10 (GMT) |
commit | a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101 (patch) | |
tree | b45a6288d1bb5ac1e1df81a0b8c2fc616bc01f44 /Include/cpython/pylifecycle.h | |
parent | f72346c47537657a287a862305f65eb5d7594fbf (diff) | |
download | cpython-a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101.zip cpython-a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101.tar.gz cpython-a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101.tar.bz2 |
bpo-36301: Add _Py_PreInitializeFromConfig() (GH-12536)
* Initialize _PyPreConfig.dev_mode to -1.
* _PyPreConfig_Read(): coreconfig has the priority over preconfig.
* _PyCoreConfig_Read() now calls _PyPreCmdline_Read() internally.
* config_from_cmdline() now pass _PyPreCmdline to config_read().
* Add _PyPreCmdline_Copy().
Diffstat (limited to 'Include/cpython/pylifecycle.h')
-rw-r--r-- | Include/cpython/pylifecycle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/cpython/pylifecycle.h b/Include/cpython/pylifecycle.h index 1caeb98..a226de8 100644 --- a/Include/cpython/pylifecycle.h +++ b/Include/cpython/pylifecycle.h @@ -17,6 +17,8 @@ PyAPI_FUNC(int) Py_SetStandardStreamEncoding(const char *encoding, PyAPI_FUNC(_PyInitError) _Py_PreInitialize(void); PyAPI_FUNC(_PyInitError) _Py_PreInitializeFromPreConfig( _PyPreConfig *preconfig); +PyAPI_FUNC(_PyInitError) _Py_PreInitializeFromConfig( + const _PyCoreConfig *coreconfig); PyAPI_FUNC(_PyInitError) _Py_InitializeCore( PyInterpreterState **interp, |