]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36301: Add _Py_PreInitializeFromConfig() (GH-12536)
authorVictor Stinner <vstinner@redhat.com>
Mon, 25 Mar 2019 17:37:10 +0000 (18:37 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Mar 2019 17:37:10 +0000 (18:37 +0100)
commita6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101
treeb45a6288d1bb5ac1e1df81a0b8c2fc616bc01f44
parentf72346c47537657a287a862305f65eb5d7594fbf
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().
Include/cpython/coreconfig.h
Include/cpython/pylifecycle.h
Include/internal/pycore_coreconfig.h
Python/coreconfig.c
Python/preconfig.c
Python/pylifecycle.c