[WIP] bpo-36301: Add _Py_PreInitialize() function by vstinner · Pull Request #12351 · python/cpython

@vstinner

* Add _PyRuntimeState.preconfig field. _PyPreConfig_Write() now
  writes the applied pre-configuration into _PyRuntimeState.preconfig.
* Add _Py_PreInitialize() and _Py_PreInitializeFromPreConfig()
  functions
* _PyCoreConfig_Read() now calls _Py_PreInitialize() to ensure that
  Python is pre-configured. It reads the pre-configuration from
  _PyRuntime.

@vstinner vstinner changed the title bpo-36301: Add _Py_PreInitialize() function [WIP] bpo-36301: Add _Py_PreInitialize() function

Mar 18, 2019