Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 25, 2019

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

  • _PyCoreConfig_ReadFromArgv(): remove preconfig parameter,
    use _PyRuntime.preconfig.
  • Add _PyPreCmdline_GetPreConfig(). _PyPreConfig_Read() now calls it.
  • Rename _PyPreCmdline_Init() to _PyPreCmdline_SetArgv()
  • Factorize _Py_PreInitializeFromPreConfig() code: add
    pyinit_preinit().

https://bugs.python.org/issue36301

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

* _PyCoreConfig_ReadFromArgv(): remove preconfig parameter,
  use _PyRuntime.preconfig.
* Add _PyPreCmdline_GetPreConfig(). _PyPreConfig_Read() now calls it.
* Rename _PyPreCmdline_Init() to _PyPreCmdline_SetArgv()
* Factorize _Py_PreInitializeFromPreConfig() code: add
  pyinit_preinit().
* _PyPreConfig_Read() now sets coerce_c_locale to 2 if it should be
  coerced.
* Remove _PyCoreConfig_ReadPreConfig()
* _PyCoreConfig_Write() now copies updated preconfig into _PyRuntime
@vstinner vstinner merged commit f72346c into python:master Mar 25, 2019
@vstinner vstinner deleted the cleanup_preconfig branch March 25, 2019 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants