]> granicus.if.org Git - python/commit
bpo-36763: Add _Py_InitializeMain() (GH-13362)
authorVictor Stinner <vstinner@redhat.com>
Thu, 16 May 2019 15:38:16 +0000 (17:38 +0200)
committerGitHub <noreply@github.com>
Thu, 16 May 2019 15:38:16 +0000 (17:38 +0200)
commit9ef5dcaa0b3c7c7ba28dbb3ec0c9507d9d05e3a9
tree56b9b45660cc83960c2752e22ee47090632ebb09
parentae239f6b0626e926613a4a1dbafa323bd41fec32
bpo-36763: Add _Py_InitializeMain() (GH-13362)

* Add a private _Py_InitializeMain() function.
* Add again _PyCoreConfig._init_main.
* _Py_InitializeFromConfig() now uses _init_main to decide
  if _Py_InitializeMainInterpreter() should be called.
* _PyCoreConfig: rename _frozen to pathconfig_warnings, its value is
  now the opposite of Py_FrozenFlag.
* Add an unit test for _init_main=0 and _Py_InitializeMain().
Include/cpython/coreconfig.h
Include/cpython/pylifecycle.h
Lib/test/test_embed.py
Modules/getpath.c
Programs/_freeze_importlib.c
Programs/_testembed.c
Python/coreconfig.c
Python/frozenmain.c
Python/pylifecycle.c
Python/pythonrun.c