]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34170: Add _Py_InitializeFromConfig() (GH-8454)
authorVictor Stinner <vstinner@redhat.com>
Wed, 25 Jul 2018 00:49:17 +0000 (02:49 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Jul 2018 00:49:17 +0000 (02:49 +0200)
commit1dc6e3906acb81163725e98378bf4d1bd1ce771a
tree8aa562d0a219b6880ed4757ac6ae2367024b3b76
parent6cf8255912c36fec6f87f62513034d0818f61390
bpo-34170: Add _Py_InitializeFromConfig() (GH-8454)

* If _Py_InitializeCore() is called twice, the second call now copies
  and apply (partially) the new configuration.
* Rename _Py_CommandLineDetails to _PyCmdline
* Move more code into pymain_init(). The core configuration created
  by Py_Main() is new destroyed before running Python to reduce the
  memory footprint.
* _Py_InitializeCore() now returns the created interpreter.
  _Py_InitializeMainInterpreter() now expects an interpreter.
* Remove _Py_InitializeEx_Private(): _freeze_importlib now uses
  _Py_InitializeFromConfig()
* _PyCoreConfig_InitPathConfig() now only computes the path
  configuration if needed.
Include/pylifecycle.h
Include/pystate.h
Modules/main.c
Programs/_freeze_importlib.c
Python/pathconfig.c
Python/pylifecycle.c