]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36301: Cleanup preconfig code (GH-12535)
authorVictor Stinner <vstinner@redhat.com>
Mon, 25 Mar 2019 16:54:58 +0000 (17:54 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Mar 2019 16:54:58 +0000 (17:54 +0100)
commitf72346c47537657a287a862305f65eb5d7594fbf
treed97a19e2a156c04623bcefd32a16b851798a53af
parent68d228f174ceed151200e7e0b44ffc5edd4e0ea2
bpo-36301: Cleanup preconfig code (GH-12535)

Prepare code to move some _PyPreConfig parameters into _PyPreCmdline.
Changes:

* _PyCoreConfig_ReadFromArgv(): remove preconfig parameter,
  use _PyRuntime.preconfig.
* Add _PyPreCmdline_GetPreConfig() (called by _PyPreConfig_Read()).
* Rename _PyPreCmdline_Init() to _PyPreCmdline_SetArgv()
* Factorize _Py_PreInitializeFromPreConfig() code: add
  pyinit_preinit().
* _PyPreConfig_Read() now sets coerce_c_locale to 2 if it must be
  coerced.
* Remove _PyCoreConfig_ReadPreConfig().
* _PyCoreConfig_Write() now copies updated preconfig into _PyRuntime.
Include/cpython/coreconfig.h
Include/internal/pycore_coreconfig.h
Modules/main.c
Python/coreconfig.c
Python/pathconfig.c
Python/preconfig.c
Python/pylifecycle.c