Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-36301: Add _PyRuntime.pre_initialized #12457

Merged
merged 1 commit into from
Mar 20, 2019
Merged

bpo-36301: Add _PyRuntime.pre_initialized #12457

merged 1 commit into from
Mar 20, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 20, 2019

  • Add _PyRuntime.pre_initialized: set to 1 when Python
    is pre-initialized
  • Add _Py_PreInitialize() and _Py_PreInitializeFromPreConfig().
  • _PyCoreConfig_Read() now calls _Py_PreInitialize().
  • Move _PyPreConfig_GetGlobalConfig() and
    _PyCoreConfig_GetGlobalConfig() calls from main.c to preconfig.c
    and coreconfig.c.

https://bugs.python.org/issue36301

* Add _PyRuntime.pre_initialized: set to 1 when Python
  is pre-initialized
* Add _Py_PreInitialize() and _Py_PreInitializeFromPreConfig().
* _PyCoreConfig_Read() now calls  _Py_PreInitialize().
* Move _PyPreConfig_GetGlobalConfig() and
  _PyCoreConfig_GetGlobalConfig() calls from main.c to preconfig.c
  and coreconfig.c.
@vstinner vstinner merged commit f29084d into python:master Mar 20, 2019
@vstinner vstinner deleted the runtime_preinit branch March 20, 2019 01: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