Skip to content

bpo-36763: Use _PyCoreConfig_InitPythonConfig()#13398

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:config_init
May 18, 2019
Merged

bpo-36763: Use _PyCoreConfig_InitPythonConfig()#13398
vstinner merged 1 commit intopython:masterfrom
vstinner:config_init

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 17, 2019

_PyPreConfig_InitPythonConfig() and _PyCoreConfig_InitPythonConfig()
no longer inherit their values from global configuration variables.

Changes:

  • _PyPreCmdline_Read() now ignores -X dev and PYTHONDEVMODE
    if dev_mode is already set.
  • Inline _PyPreConfig_INIT macro into _PyPreConfig_Init() function.
  • Inline _PyCoreConfig_INIT macro into _PyCoreConfig_Init() function.
  • Replace _PyCoreConfig_Init() with _PyCoreConfig_InitPythonConfig()
    in most tests of _testembed.c.
  • Replace _PyCoreConfig_Init() with _PyCoreConfig_InitIsolatedConfig()
    in _freeze_importlib.c.
  • Move some initialization functions from the internal
    to the private API.

https://bugs.python.org/issue36763

_PyPreConfig_InitPythonConfig() and _PyCoreConfig_InitPythonConfig()
no longer inherit their values from global configuration variables.

Changes:

* _PyPreCmdline_Read() now ignores -X dev and PYTHONDEVMODE
  if dev_mode is already set.
* Inline _PyPreConfig_INIT macro into _PyPreConfig_Init() function.
* Inline _PyCoreConfig_INIT macro into _PyCoreConfig_Init() function.
* Replace _PyCoreConfig_Init() with _PyCoreConfig_InitPythonConfig()
  in most tests of _testembed.c.
* Replace _PyCoreConfig_Init() with _PyCoreConfig_InitIsolatedConfig()
  in _freeze_importlib.c.
* Move some initialization functions from the internal
  to the private API.
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