Skip to content

bpo-32030: Add _PyCoreConfig_Copy()#4874

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:config_copy
Dec 15, 2017
Merged

bpo-32030: Add _PyCoreConfig_Copy()#4874
vstinner merged 1 commit intopython:masterfrom
vstinner:config_copy

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Dec 14, 2017

Each interpreter now has its core_config and main_config copy:

  • Add _PyCoreConfig_Copy() and _PyMainInterpreterConfig_Copy()
  • Move _PyCoreConfig_Read(), _PyCoreConfig_Clear() and
    _PyMainInterpreterConfig_Clear() from Python/pylifecycle.c to
    Modules/main.c
  • Fix _Py_InitializeEx_Private(): call _PyCoreConfig_ReadEnv() before
    _Py_InitializeCore()

https://bugs.python.org/issue32030

Each interpreter now has its core_config and main_config copy:

* Add _PyCoreConfig_Copy() and _PyMainInterpreterConfig_Copy()
* Move _PyCoreConfig_Read(), _PyCoreConfig_Clear() and
  _PyMainInterpreterConfig_Clear() from Python/pylifecycle.c to
  Modules/main.c
* Fix _Py_InitializeEx_Private(): call _PyCoreConfig_ReadEnv() before
  _Py_InitializeCore()
@vstinner vstinner merged commit da27341 into python:master Dec 15, 2017
@vstinner vstinner deleted the config_copy branch December 15, 2017 00:46
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